diff options
| author | Rong Zhang <i@rong.moe> | 2026-09-21 03:40:23 +0800 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2026-09-24 13:17:32 +0100 |
| commit | 7b9a609575615a3ba18a31a95282e756e34bd506 (patch) | |
| tree | 54f8b692b179d6075605553b87a9f6e3fa930740 /include/linux | |
| parent | 072e0e799bc6b3909afc8fd7fac750b31e37b438 (diff) | |
| download | linux-next-7b9a609575615a3ba18a31a95282e756e34bd506.tar.gz linux-next-7b9a609575615a3ba18a31a95282e756e34bd506.zip | |
leds: trigger: Enforce strict checks in led_trigger_is_hw_controlled()
With all existing triggers adopting the new interface, strict checks
could be enforced to make the semantics of hardware control triggers
clearer.
In detail, a hardware control trigger should:
- Implement hw_offloaded() callback to indicate hardware control
- Associate with the LED classdev's hw_control_trigger string
The fallback path is kept, but a warning message is emitted when it
reaches there.
Acked-by: Ike Panhc <ikepanhc@gmail.com>
Signed-off-by: Rong Zhang <i@rong.moe>
Link: https://patch.msgid.link/20260921-leds-trigger-hw-changed-v7-9-fe3cdb6dec51@rong.moe
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
