power: supply: sc27xx: Make sure the alarm capacity is larger than 0
authorYuanjiang Yu <yuanjiang.yu@unisoc.com>
Wed, 31 Jul 2019 10:00:27 +0000 (18:00 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 2 Sep 2019 20:55:24 +0000 (22:55 +0200)
commitff062d06948c012cbfd6f5947b599be5ea1c3799
tree858f03b18f4f0447316e5b8a49a37a97e7c32a85
parent7384b0e7668f722fcf7abe56f61a7212debd0180
power: supply: sc27xx: Make sure the alarm capacity is larger than 0

We must make sure the alarm capacity is larger than 0, to help to
calibrate the low battery capacity.

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