]> git.baikalelectronics.ru Git - kernel.git/commit
leds: trigger: add support for LED-private device triggers
authorMarek Behún <marek.behun@nic.cz>
Thu, 16 Jul 2020 17:17:28 +0000 (19:17 +0200)
committerPavel Machek <pavel@ucw.cz>
Wed, 22 Jul 2020 12:42:07 +0000 (14:42 +0200)
commit7188b073edd4be4860521241470eada0d9fcdeba
treea5c79c9c4173a8b027d4a24a34100c91a0affb99
parent65dc97f381f072b2b2ffe91afdb90e3ec95adc15
leds: trigger: add support for LED-private device triggers

Some LED controllers may come with an internal HW triggering mechanism
for the LED and the ability to switch between SW control and the
internal HW control. This includes most PHYs, various ethernet switches,
the Turris Omnia LED controller or AXP20X PMIC.

This adds support for registering such triggers.

This code is based on work by Pavel Machek <pavel@ucw.cz> and
Ondřej Jirman <megous@megous.com>.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/led-triggers.c
include/linux/leds.h