power: supply: core: add POWER_SUPPLY_HEALTH_NO_BATTERY
authorLuca Ceresoli <luca@lucaceresoli.net>
Mon, 8 Nov 2021 16:27:05 +0000 (17:27 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 16 Nov 2021 15:10:07 +0000 (16:10 +0100)
commit77d641baa3c8e18a1056bec6c64c6103c1a17b1e
tree574e1021337ba441fa1c771bcc7c17ba403b9fcb
parentf9a09de33b47a8ac9a128fea54a549dddf87c6b4
power: supply: core: add POWER_SUPPLY_HEALTH_NO_BATTERY

Some chargers can keep the system powered from the mains even when no
battery is present. It this case none of the currently defined health
statuses applies. Add a new status to report that no battery is present.

Suggested-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Documentation/ABI/testing/sysfs-class-power
drivers/power/supply/power_supply_sysfs.c
include/linux/power_supply.h