OpenCloudOS-Kernel/drivers/leds/trigger
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
..
Kconfig leds: triggers: don't depend on LEDS_TRIGGERS twice 2018-06-28 21:34:44 +02:00
Makefile leds: trigger: Introduce a NETDEV trigger 2018-01-08 21:28:11 +01:00
ledtrig-activity.c leds: triggers: let struct led_trigger::activate() return an error code 2018-07-05 23:21:10 +02:00
ledtrig-backlight.c leds: triggers: let struct led_trigger::activate() return an error code 2018-07-05 23:21:10 +02:00
ledtrig-camera.c leds: triggers: make the MODULE_LICENSE string match the actual license 2018-07-05 22:59:36 +02:00
ledtrig-cpu.c leds/trigger/cpu: Add LED trigger for all CPUs aggregated 2017-03-06 22:06:47 +01:00
ledtrig-default-on.c leds: triggers: let struct led_trigger::activate() return an error code 2018-07-05 23:21:10 +02:00
ledtrig-disk.c leds: Extends disk trigger for reads and writes 2018-03-11 20:01:55 +01:00
ledtrig-gpio.c leds: triggers: let struct led_trigger::activate() return an error code 2018-07-05 23:21:10 +02:00
ledtrig-heartbeat.c leds: triggers: let struct led_trigger::activate() return an error code 2018-07-05 23:21:10 +02:00
ledtrig-mtd.c leds: trigger: Introduce a MTD (NAND/NOR) trigger 2016-04-13 10:23:14 +02:00
ledtrig-netdev.c leds: triggers: let struct led_trigger::activate() return an error code 2018-07-05 23:21:10 +02:00
ledtrig-oneshot.c leds: triggers: let struct led_trigger::activate() return an error code 2018-07-05 23:21:10 +02:00
ledtrig-panic.c leds: triggers: Allow to switch the trigger to "panic" on a kernel panic 2016-05-06 10:22:09 +02:00
ledtrig-timer.c leds: triggers: let struct led_trigger::activate() return an error code 2018-07-05 23:21:10 +02:00
ledtrig-transient.c leds: triggers: let struct led_trigger::activate() return an error code 2018-07-05 23:21:10 +02:00