summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/lp8788-charger.c
diff options
context:
space:
mode:
authordongjian <dongjian@yulong.com>2021-03-22 12:21:33 +0100
committerSebastian Reichel <sre@kernel.org>2021-03-22 14:54:24 +0100
commit2469b836fa835c67648acad17d62bc805236a6ea (patch)
treeeea7f36088f68c680c32c098c4b9c578b5659ee5 /drivers/power/supply/lp8788-charger.c
parentpower: supply: bq27xxx: Add support for BQ78Z100 (diff)
downloadlinux-2469b836fa835c67648acad17d62bc805236a6ea.tar.xz
linux-2469b836fa835c67648acad17d62bc805236a6ea.zip
power: supply: Use IRQF_ONESHOT
Fixes coccicheck error: drivers/power/supply/pm2301_charger.c:1089:7-27: ERROR: drivers/power/supply/lp8788-charger.c:502:8-28: ERROR: drivers/power/supply/tps65217_charger.c:239:8-33: ERROR: drivers/power/supply/tps65090-charger.c:303:8-33: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Signed-off-by: dongjian <dongjian@yulong.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/lp8788-charger.c')
-rw-r--r--drivers/power/supply/lp8788-charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/lp8788-charger.c b/drivers/power/supply/lp8788-charger.c
index e7931ffb7151..397e5a03b7d9 100644
--- a/drivers/power/supply/lp8788-charger.c
+++ b/drivers/power/supply/lp8788-charger.c
@@ -501,7 +501,7 @@ static int lp8788_set_irqs(struct platform_device *pdev,
ret = request_threaded_irq(virq, NULL,
lp8788_charger_irq_thread,
- 0, name, pchg);
+ IRQF_ONESHOT, name, pchg);
if (ret)
break;
}