diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2023-05-29 19:32:31 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-31 11:42:08 +0300 |
commit | ed554d3f945179c5b159bddfad7be34b403fe11a (patch) | |
tree | 32bf1254dc39a2280933cd506a813b7dc854b88c /security | |
parent | 6cd8ec58c1bf65adcdf346fe241ba69e0b56e6bd (diff) | |
download | linux-ed554d3f945179c5b159bddfad7be34b403fe11a.tar.xz |
leds: add APIs for LEDs hw control
Add an option to permit LED driver to declare support for a specific
trigger to use hw control and setup the LED to blink based on specific
provided modes.
Add APIs for LEDs hw control. These functions will be used to activate
hardware control where a LED will use the provided flags, from an
unique defined supported trigger, to setup the LED to be driven by
hardware.
Add hw_control_is_supported() to ask the LED driver if the requested
mode by the trigger are supported and the LED can be setup to follow
the requested modes.
Deactivate hardware blink control by setting brightness to LED_OFF via
the brightness_set() callback.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions