]> www.infradead.org Git - users/dwmw2/linux.git/commit
power: supply: pmu_battery: Set power supply type to BATTERY
authorEd Robbins <edd.robbins@googlemail.com>
Fri, 18 Oct 2024 06:07:30 +0000 (07:07 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 10 Nov 2024 02:33:17 +0000 (03:33 +0100)
commit3287673c1d26f94845ef958090c583c46054b70d
treef3729bf751e271c28b014a91794721f9831b4c8e
parent83bce34420eaf91506957703bf9a31d8581ed6cb
power: supply: pmu_battery: Set power supply type to BATTERY

If the power supply type is not set it defaults to "Unknown" and upower
does not recognise it. In turn battery monitor applications do not see a
battery. Setting to POWER_SUPPLY_TYPE_BATTERY fixes this.

Signed-off-by: Ed Robbins <edd.robbins@gmail.com>
Link: https://lore.kernel.org/r/IOFJLS.120OJ5KJG9R72@googlemail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/pmu_battery.c