summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRong Zhang <i@rong.moe>2026-09-21 03:40:22 +0800
committerLee Jones <lee@kernel.org>2026-09-24 13:17:32 +0100
commit072e0e799bc6b3909afc8fd7fac750b31e37b438 (patch)
tree04c4d307fab30a71873389c994345d7f353f1790 /include/linux
parentf5005c7cec7d4cff58f25442ed6dfca56e42b16d (diff)
downloadlinux-next-072e0e799bc6b3909afc8fd7fac750b31e37b438.tar.gz
linux-next-072e0e799bc6b3909afc8fd7fac750b31e37b438.zip
leds: trigger: netdev: Implement hw_offloaded() callback
"netdev" can run in hardware control according to hardware capabilities and trigger options. Implement hw_offloaded() callback to provide its hardware control state to the LED core, and document the relation between the custom "offloaded" attribute and the generic "trigger_may_offload_to_hw" attribute. The callback mimics how the existing "offloaded" attribute does, i.e., locklessly reads hw_control, as it's just a hint and don't need to be accurate. 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-8-fe3cdb6dec51@rong.moe Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions