power: supply: ug3105_battery: Put FG in standby on remove and shutdown
authorHans de Goede <hansg@kernel.org>
Sun, 31 Aug 2025 12:29:39 +0000 (14:29 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 5 Sep 2025 23:50:01 +0000 (01:50 +0200)
commiteede3f72a9658a3c82725ed36723d3189a91b3e5
tree3fc89bd072e9d7be891584bdabaec9b7424cdba8
parentdcf1e7b73797399f8706226c7ff6ad8f18634db4
power: supply: ug3105_battery: Put FG in standby on remove and shutdown

Put the fuel-gauge in standby mode when the driver is unbound and on
system shutdown.

This avoids unnecessary battery drain when the system is off.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Hans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20250831122942.47875-4-hansg@kernel.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ug3105_battery.c