power: supply: max17040: Send uevent in SOC and status change
authorMatheus Castello <matheus@castello.eng.br>
Thu, 5 Dec 2019 15:44:10 +0000 (12:44 -0300)
committerSebastian Reichel <sre@kernel.org>
Thu, 19 Dec 2019 00:51:52 +0000 (01:51 +0100)
commita08990ea11dc3386cc972c817a121525f7bc7321
treef9558b46af836030faf696b6e506b962c12aa076
parentcccdd0ca1c0d985c3cf1dfe65a3b42387a6e3d22
power: supply: max17040: Send uevent in SOC and status change

Notify core through power_supply_changed() in case of changes in state
of charge and power supply status. This is useful for user-space to
efficiently update current battery level.

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>
drivers/power/supply/max17040_battery.c