mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 01:51:34 +00:00
2e17ed94de
According datasheet max17040 has a pin for alert host for low SOC. This pin can be used as external interrupt, so we need to check for interrupts assigned for device and handle it. In handler we are checking and storing fuel gauge registers values and send an uevent to notificate user space, so user space can decide save work or turn off since the alert demonstrate that the battery may no have the power to keep the system turned on for much longer. Signed-off-by: Matheus Castello <matheus@castello.eng.br> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> |
||
---|---|---|
.. | ||
avs | ||
reset | ||
supply | ||
Kconfig | ||
Makefile |