power: supply: ug3105_battery: Use psy->battery_info
authorHans de Goede <hansg@kernel.org>
Sun, 8 Jun 2025 20:40:08 +0000 (22:40 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 22 Jun 2025 00:08:44 +0000 (02:08 +0200)
commit8842bd00a74bf758fb1abf572ec1c7d70c09dedb
tree860aab33a68fbe223765f80dd3b1fa8583893c30
parent370643f45aad93476b6489238ccb45a77b94da3f
power: supply: ug3105_battery: Use psy->battery_info

For POWER_SUPPLY_TYPE_BATTERY power-supplies the core already
calls power_supply_get_battery_info() and stores the result in
psy->battery_info.

Use psy->battery_info instead of having the driver call
power_supply_get_battery_info() itself.

Signed-off-by: Hans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20250608204010.37482-9-hansg@kernel.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ug3105_battery.c