Uwe Kleine-König 2282e125a4 leds: triggers: let struct led_trigger::activate() return an error code
Given that activating a trigger can fail, let the callback return an
indication. This prevents to have a trigger active according to the
"trigger" sysfs attribute but not functional.

All users are changed accordingly to return 0 for now. There is no intended
change in behaviour.

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>
2018-07-05 23:21:10 +02:00
..
2018-06-12 16:19:22 -07:00
2018-05-26 09:16:44 +02:00
2018-06-12 16:19:22 -07:00
2018-05-26 09:16:44 +02:00
2018-03-27 13:18:09 -04:00
2018-06-12 16:19:22 -07:00
2018-05-04 12:54:38 -04:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-05-28 22:59:54 -04:00
2018-06-05 10:21:18 -04:00