aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/arm-cs-trace-disasm.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2024-05-31 15:47:00 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2024-06-03 01:29:36 +0200
commit964a504b1261b641797d93cdbf79b68ff7d85720 (patch)
treed63f7d30872f042743bfad2b3693543a51185986 /tools/perf/scripts/python/arm-cs-trace-disasm.py
parent447bbf76e6b08c6399462946c2b98d7c5eaed507 (diff)
power: supply: leds: Add power_supply_[un]register_led_trigger()
Add power_supply_[un]register_led_trigger() helper functions. The primary goal of this is as a preparation patch for adding an activate callback to the power-supply LED triggers to ensure that power-supply LEDs get the correct initial value when the LED gets registered after the power_supply has been registered (this will use the psy back pointer). There also is quite a lot of code duplication in the existing LED trigger registration in the form of the kasprintf() for the name-template for each trigger + related error handling. This duplication is removed by these new helpers. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Andy Shevchenko <andy@kernel.org> Link: https://lore.kernel.org/r/20240531134702.166145-2-hdegoede@redhat.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions