Inspired by https://lore.kernel.org/linux-leds/20190817145509.GA18381@amd/T/ and the ledtrig-usbport implementation. This patch series introduce a new LED trigger for block devices. Signed-off-by: Enzo Matsumiya <ematsumiya@xxxxxxx> Enzo Matsumiya (2): block: export block_class and disk_type symbols leds: trigger: implement block trigger block/genhd.c | 2 + drivers/leds/trigger/Kconfig | 10 + drivers/leds/trigger/Makefile | 1 + drivers/leds/trigger/ledtrig-block.c | 293 +++++++++++++++++++++++++++ 4 files changed, 306 insertions(+) create mode 100644 drivers/leds/trigger/ledtrig-block.c -- 2.31.1