linux_old1/drivers/leds/trigger
Uwe Kleine-König f8112a1de1 leds: netdev trigger: simplifications from core changes
The trigger core learned error handling for the activate callback and
can handle device attributes now. This allows simplifying the driver
considerably. Note that .deactivate() is only called when .activate()
succeeded, so the check for trigger_data being non-NULL can go away.
(It was broken before because the core didn't clear .trigger_data, so it
might have been non-NULL even if .activate() failed before.)

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:12 +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: netdev trigger: simplifications from core changes 2018-07-05 23:21:12 +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