commit | e4786ba0db7b1163403c29c429f5ef61906a84c0 | [log] [tgz] |
---|---|---|
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | Mon Jul 02 22:05:33 2018 +0200 |
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | Thu Jul 05 23:21:14 2018 +0200 |
tree | 7e81e79d6e12810e87754fa1d29a426bf4f5c375 | |
parent | 13d698cbd99ce90f1d6b4fb0ff11ab90eb55f55e [diff] |
leds: backlight trigger: simplifications from core changes Use the new module_led_trigger() helper. Also use attribute support from the trigger core. Drop error message on allocation failure as kzalloc() already screams loudly when failing. Use wrappers to get and set trigger data. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>