OSDN Git Service

power: supply: add charge_behaviour attributes
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 23 Nov 2021 23:27:01 +0000 (00:27 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 21 Dec 2021 15:27:09 +0000 (16:27 +0100)
commit1b0b6cc8030d08d2a24e9e5f85dc36c5a58200ba
treef01bc3856cc1fef5b290efe81f1a18e8d1b29586
parentee0d44f20dbdda535a63228165259ed9d40e7880
power: supply: add charge_behaviour attributes

This a revised version of
"[RFC] add standardized attributes for force_discharge and inhibit_charge" [0],
incorporating discussion results.

The biggest change is the switch from two boolean attributes to a single
enum attribute.

[0] https://lore.kernel.org/platform-driver-x86/21569a89-8303-8573-05fb-c2fec29983d1@gmail.com/

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-2-linux@weissschuh.net
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Documentation/ABI/testing/sysfs-class-power
include/linux/power_supply.h