diff options
| author | Heiner Kallweit <[email protected]> | 2023-12-09 23:54:51 +0100 |
|---|---|---|
| committer | Lee Jones <[email protected]> | 2024-03-07 08:48:01 +0000 |
| commit | 7eef64da0b0ad8e90409fc4aa80eb69c1b4bdd2c (patch) | |
| tree | abfa457c0e9854f276b81850214849d44d88cd7e /tools/perf/scripts/python/stackcollapse.py | |
| parent | ec18a2a83b8b9f7e39c80105ea148c769c46227b (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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions