diff options
| author | Lee Jones <[email protected]> | 2024-06-12 16:36:40 +0100 |
|---|---|---|
| committer | Lee Jones <[email protected]> | 2024-06-26 16:55:44 +0100 |
| commit | d33d1214a1ddf9e7e4d14c62637518252927f0be (patch) | |
| tree | 45f2fb94a326a591b6f0f8963fae9dc564dacddf /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 6f963a20eed72b9abb54754cc935ce546b66b451 (diff) | |
leds: core: Omit set_brightness error message for a LED supporting hw trigger only
If both set_brightness functions return -ENOTSUPP, then the LED doesn't
support setting a fixed brightness value, and the error message isn't
helpful. This can be the case e.g. for LEDs supporting a specific hw
trigger only.
Pinched the subject line and commit message from Heiner:
Link: https://lore.kernel.org/all/[email protected]/
Reworked the function to provide Heiner's required semantics whilst
simultaneously increasing readability and flow.
Cc: Pavel Machek <[email protected]>
Cc: [email protected]
Suggested-by: Heiner Kallweit <[email protected]>
Reviewed-by: Heiner Kallweit <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions