linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Barry Song <song.bao.hua@hisilicon.com>
To: <tglx@linutronix.de>, <dmitry.torokhov@gmail.com>,
	<maz@kernel.org>, <gregkh@linuxfoundation.org>,
	<linux-input@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <linuxarm@openeuler.org>, Barry Song <song.bao.hua@hisilicon.com>
Subject: [PATCH v4 05/12] Input: bu21029_ts - request_irq by IRQF_NO_AUTOEN and remove irq_set_status_flags
Date: Fri, 29 Jan 2021 11:35:31 +1300	[thread overview]
Message-ID: <20210128223538.20272-6-song.bao.hua@hisilicon.com> (raw)
In-Reply-To: <20210128223538.20272-1-song.bao.hua@hisilicon.com>

Right now, irq core supports requesting irq with IRQF_NO_AUTOEN, this means
the driver doesn't need to call irq_set_status_flags any more.

Signed-off-by: Barry Song <song.bao.hua@hisilicon.com>
---
 drivers/input/touchscreen/bu21029_ts.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/input/touchscreen/bu21029_ts.c b/drivers/input/touchscreen/bu21029_ts.c
index 341925edb8e6..392950aa7856 100644
--- a/drivers/input/touchscreen/bu21029_ts.c
+++ b/drivers/input/touchscreen/bu21029_ts.c
@@ -401,10 +401,10 @@ static int bu21029_probe(struct i2c_client *client,
 
 	input_set_drvdata(in_dev, bu21029);
 
-	irq_set_status_flags(client->irq, IRQ_NOAUTOEN);
 	error = devm_request_threaded_irq(&client->dev, client->irq,
 					  NULL, bu21029_touch_soft_irq,
-					  IRQF_ONESHOT, DRIVER_NAME, bu21029);
+					  IRQF_ONESHOT | IRQF_NO_AUTOEN,
+					  DRIVER_NAME, bu21029);
 	if (error) {
 		dev_err(&client->dev,
 			"unable to request touch irq: %d\n", error);
-- 
2.25.1


  parent reply	other threads:[~2021-01-28 22:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-28 22:35 [PATCH v4 00/12] add IRQF_NO_AUTOEN for request_irq Barry Song
2021-01-28 22:35 ` [PATCH v4 01/12] genirq: " Barry Song
2021-02-09 21:32   ` Song Bao Hua (Barry Song)
2021-01-28 22:35 ` [PATCH v4 02/12] Input: ar1021 - request_irq by IRQF_NO_AUTOEN and remove disable_irq Barry Song
2021-01-28 22:35 ` [PATCH v4 03/12] Input: atmel_mxt_ts " Barry Song
2021-01-28 22:35 ` [PATCH v4 04/12] Input: melfas_mip4 " Barry Song
2021-01-28 22:35 ` Barry Song [this message]
2021-01-28 22:35 ` [PATCH v4 06/12] Input: stmfts - request_irq by IRQF_NO_AUTOEN and remove irq_set_status_flags Barry Song
2021-01-28 22:35 ` [PATCH v4 07/12] Input: zinitix " Barry Song
2021-01-28 22:35 ` [PATCH v4 08/12] Input: mms114 - request_irq by IRQF_NO_AUTOEN and remove disable_irq Barry Song
2021-01-28 22:35 ` [PATCH v4 09/12] Input: wm831x-ts " Barry Song
2021-01-28 22:35 ` [PATCH v4 10/12] Input: cyttsp " Barry Song
2021-01-28 22:35 ` [PATCH v4 11/12] Input: tegra-kbc " Barry Song
2021-01-28 22:35 ` [PATCH v4 12/12] Input: tca6416-keypad " Barry Song

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210128223538.20272-6-song.bao.hua@hisilicon.com \
    --to=song.bao.hua@hisilicon.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxarm@openeuler.org \
    --cc=maz@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).