OSDN Git Service

power: supply: add helpers for charge_behaviour sysfs
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 23 Nov 2021 23:27:02 +0000 (00:27 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 21 Dec 2021 15:27:42 +0000 (16:27 +0100)
commit539b9c94ac83563842a27e8cc3de5164b15c4de0
treec762821cba3c02141ea90407f0dd2f933302fe53
parent1b0b6cc8030d08d2a24e9e5f85dc36c5a58200ba
power: supply: add helpers for charge_behaviour sysfs

These helper functions can be used by drivers to implement their own
sysfs-attributes.
This is useful for ACPI-drivers extending the default ACPI-battery with
their own charge_behaviour attributes.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20211123232704.25394-3-linux@weissschuh.net
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/power/supply/power_supply_sysfs.c
include/linux/power_supply.h