power: supply: sc27xx: Fix conditon to enable the FGU interrupt
authorYuanjiang Yu <yuanjiang.yu@unisoc.com>
Wed, 31 Jul 2019 10:00:24 +0000 (18:00 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 2 Sep 2019 20:47:09 +0000 (22:47 +0200)
commit168e68d072756d631a210342d0429c969501b7cf
tree674baebc9b57b1145722e076943383b6cc64dcf4
parent7cff19b9a8ff1fdc61655dad4e2009bb44099d70
power: supply: sc27xx: Fix conditon to enable the FGU interrupt

We should allow to enable FGU interrupt to adjust the battery capacity,
when charging status is POWER_SUPPLY_STATUS_DISCHARGING.

Signed-off-by: Yuanjiang Yu <yuanjiang.yu@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sc27xx_fuel_gauge.c