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)
commit93690cdf3060c61dfce813121d0bfc055e7fa30d
treea5c79c9c4173a8b027d4a24a34100c91a0affb99
parent00253ec2c9849c2a1101818565c7f4c09dbef327
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