linux-sg2042/drivers/leds/trigger
Linus Walleij d1ed7c5586 leds: Extends disk trigger for reads and writes
This adds two new disk triggers for triggering on reads
and writes respectively, named "disk-read" and "disk-write".

The use case comes from working on the D-Link DNS-313 NAS
box. This features an RGB LED for disk activity. with
these two triggers I can couple the green LED to read
activity and the red LED to write activity, which gives
the appropriate user feedback about what is happening
on the disk. When tested it gave exactly the feedback
desired.

The in-kernel interface is simply changed to pass a bool
indicating if the activity is write activity and update
each trigger (and the composite "disk-activity" trigger)
depending on what is passed in.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
2018-03-11 20:01:55 +01:00
..
Kconfig leds: trigger: Introduce a NETDEV trigger 2018-01-08 21:28:11 +01:00
Makefile leds: trigger: Introduce a NETDEV trigger 2018-01-08 21:28:11 +01:00
ledtrig-activity.c leds: Convert timers to use timer_setup() 2017-10-25 21:52:22 +02:00
ledtrig-backlight.c leds: core: Add led_set_brightness_nosleep{nopm} functions 2016-01-04 09:57:30 +01:00
ledtrig-camera.c
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: core: Add led_set_brightness_nosleep{nopm} functions 2016-01-04 09:57:30 +01:00
ledtrig-disk.c leds: Extends disk trigger for reads and writes 2018-03-11 20:01:55 +01:00
ledtrig-gpio.c leds: trigger: gpio: Use threaded IRQ 2017-05-29 21:55:58 +02:00
ledtrig-heartbeat.c leds: ledtrig-heartbeat: Convert timers to use timer_setup() 2017-10-06 21:39:21 +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: trigger: Introduce a NETDEV trigger 2018-01-08 21:28:11 +01:00
ledtrig-oneshot.c leds: triggers: oneshot: fix module license specification 2016-01-04 09:57:36 +01: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
ledtrig-transient.c leds: ledtrig-transient: Add SPDX license identifiers 2018-01-11 21:24:17 +01:00