aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2024-05-31 15:47:00 +0200
committerSebastian Reichel <[email protected]>2024-06-03 01:29:36 +0200
commit964a504b1261b641797d93cdbf79b68ff7d85720 (patch)
treed63f7d30872f042743bfad2b3693543a51185986 /lib/test_fortify/write_overflow-strncpy-src.c
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 <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions