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: NMarek Behún <marek.behun@nic.cz> Acked-by: NJacek Anaszewski <jacek.anaszewski@gmail.com> Signed-off-by: NPavel Machek <pavel@ucw.cz>
Showing
想要评论请 注册 或 登录