linux-stable/drivers/power
Hans de Goede a6456d43e9 power: supply: sysfs: Add power_supply_show_enum_with_available() helper
Turn power_supply_charge_behaviour_show() into a generic function for
showing enum values with their available (for writing) values shown
and the current value shown surrounded by sqaure-brackets like
the show() output for "usb_type" and "charge_behaviour".

This is a preparation patch for refactoring the "usb_type" property
handling to use a bitmask indicating available usb-types + this new
generic function.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240831142039.28830-5-hdegoede@redhat.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
2024-09-03 23:20:27 +02:00
..
reset power: reset: piix4: add missing MODULE_DESCRIPTION() macro 2024-06-26 19:28:28 +02:00
sequencing power: sequencing: fix an invalid pointer dereference in error path 2024-07-17 16:30:50 +02:00
supply power: supply: sysfs: Add power_supply_show_enum_with_available() helper 2024-09-03 23:20:27 +02:00
Kconfig power: sequencing: implement the pwrseq core 2024-06-12 09:20:13 +02:00
Makefile power: sequencing: implement the pwrseq core 2024-06-12 09:20:13 +02:00