power: supply: max17040: Support soc alert
authorIskren Chernev <iskren.chernev@gmail.com>
Tue, 22 Sep 2020 11:42:37 +0000 (14:42 +0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 3 Oct 2020 17:21:24 +0000 (19:21 +0200)
commitee2d433cb47338cd40af800cdab5133f62edca10
tree9acebb0b522877700bbc16a5ef28d7ea9a08fe2f
parent1779c6e3496a53d9cbbbcd248b234b2b6a07435c
power: supply: max17040: Support soc alert

max17048 and max17049 support SOC alerts (interrupts when battery
capacity changes by +/- 1%). At the moment the driver polls for changes
every second. Using the alerts removes the need for polling.

Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com>
Tested-by: Jonathan Bakker <xc-racer2@live.ca>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max17040_battery.c