leds: trigger: Introduce a MTD (NAND/NOR) trigger
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Tue, 12 Apr 2016 20:46:40 +0000 (17:46 -0300)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Wed, 13 Apr 2016 08:23:14 +0000 (10:23 +0200)
commit4b721174c7976f26300e39aa42714fb5a54bebb5
tree9d5df9d97b9acafc7634025c33aba36e31ff9100
parent0c034fe37718990e0ffdd9622bd6cc5b4f93111f
leds: trigger: Introduce a MTD (NAND/NOR) trigger

This commit introduces a MTD trigger for flash (NAND/NOR) device
activity. The implementation is copied from IDE disk.

This trigger deprecates the "nand-disk" LED trigger, but for backwards
compatibility, we still keep the "nand-disk" trigger around.

The motivation for deprecating the "nand-disk" LED trigger is that
it only works for NAND drivers, whereas the "mtd" LED trigger
is more generic (in fact, "nand-disk" currently only works for
certain NAND drivers).

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/trigger/Kconfig
drivers/leds/trigger/Makefile
drivers/leds/trigger/ledtrig-mtd.c [new file with mode: 0644]
include/linux/leds.h