All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: max8907: move to use request_irq by IRQF_NO_AUTOEN flag
@ 2021-05-13 12:32 Tian Tao
  2021-05-19 14:36 ` Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Tian Tao @ 2021-05-13 12:32 UTC (permalink / raw)
  To: lee.jones; +Cc: linux-kernel, Tian Tao

This change is just to simplify the code, no actual functional changes.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 drivers/mfd/max8907.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/mfd/max8907.c b/drivers/mfd/max8907.c
index d44baaf..40e70ab 100644
--- a/drivers/mfd/max8907.c
+++ b/drivers/mfd/max8907.c
@@ -228,11 +228,9 @@ static int max8907_i2c_probe(struct i2c_client *i2c,
 		goto err_regmap_rtc;
 	}
 
-	irq_set_status_flags(max8907->i2c_gen->irq, IRQ_NOAUTOEN);
-
 	ret = regmap_add_irq_chip(max8907->regmap_gen, max8907->i2c_gen->irq,
-				  IRQF_ONESHOT | IRQF_SHARED, -1,
-				  &max8907_chg_irq_chip,
+				  IRQF_ONESHOT | IRQF_SHARED | IRQF_NO_AUTOEN,
+				  -1, &max8907_chg_irq_chip,
 				  &max8907->irqc_chg);
 	if (ret != 0) {
 		dev_err(&i2c->dev, "failed to add chg irq chip: %d\n", ret);
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mfd: max8907: move to use request_irq by IRQF_NO_AUTOEN flag
  2021-05-13 12:32 [PATCH] mfd: max8907: move to use request_irq by IRQF_NO_AUTOEN flag Tian Tao
@ 2021-05-19 14:36 ` Lee Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2021-05-19 14:36 UTC (permalink / raw)
  To: Tian Tao; +Cc: linux-kernel

On Thu, 13 May 2021, Tian Tao wrote:

> This change is just to simplify the code, no actual functional changes.
> 
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
> ---
>  drivers/mfd/max8907.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)

Applied, thanks.

-- 
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-19 14:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 12:32 [PATCH] mfd: max8907: move to use request_irq by IRQF_NO_AUTOEN flag Tian Tao
2021-05-19 14:36 ` Lee Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.