]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit493e7a9de5223bf0e69a4358a1744a8d3567b3e4
tree574e1021337ba441fa1c771bcc7c17ba403b9fcb
parent378883b4bf6d823c48abea14af0b3808e47f69e3
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