[PATCH] power: supply: charger-manager: Fix typo in condition

2017-11-20 Thread raitosyo
From: Ryosuke Saito Should be discharging_max_duration_ms, not charging_max_duration_ms. Signed-off-by: Ryosuke Saito --- drivers/power/supply/charger-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supply/ch

[PATCH] power: supply: sbs-battery: fix the sbs interrupt request

2017-04-20 Thread raitosyo
From: Ryosuke Saito Since we use the default primary handler for the irq, IRQF_ONESHOT must be set. Otherwise the request fails and the following errors are displayed: genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq 129 sbs-battery 0-000b: Failed to request irq: -22 Signed