diff options
author | Hans de Goede <[email protected]> | 2024-08-31 16:20:37 +0200 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2024-09-03 23:20:27 +0200 |
commit | a6456d43e9abebb5d7866e5edae3024188273306 (patch) | |
tree | dc0b84ca81c310d6532e3a2791fff045123a75c5 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 03ec41c1670aedfbd126f541c4acbb8e69d4cd0c (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions