leds: backlight trigger: simplifications from core changes
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 2 Jul 2018 20:05:33 +0000 (22:05 +0200)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Thu, 5 Jul 2018 21:21:14 +0000 (23:21 +0200)
commite4786ba0db7b1163403c29c429f5ef61906a84c0
tree7e81e79d6e12810e87754fa1d29a426bf4f5c375
parent13d698cbd99ce90f1d6b4fb0ff11ab90eb55f55e
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>
drivers/leds/trigger/ledtrig-backlight.c