aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHeiner Kallweit <[email protected]>2023-12-09 23:54:51 +0100
committerLee Jones <[email protected]>2024-03-07 08:48:01 +0000
commit7eef64da0b0ad8e90409fc4aa80eb69c1b4bdd2c (patch)
treeabfa457c0e9854f276b81850214849d44d88cd7e /tools/perf/scripts/python
parentec18a2a83b8b9f7e39c80105ea148c769c46227b (diff)
leds: trigger: panic: Simplify led_trigger_set_panic
I don't see why we iterate over all triggers to find the panic trigger. We *are* the panic trigger. Therefore we also know that the panic trigger doesn't have an activate() hook. So we can simplify the code significantly. Signed-off-by: Heiner Kallweit <[email protected]> Reviewed-by: Jacek Anaszewski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions