[RFC PATCH v2 10/10] block: Add config option to enable block device LED triggers
Ian Pilcher
arequipeno at gmail.com
Sun Aug 8 23:32:17 EDT 2021
Signed-off-by: Ian Pilcher <arequipeno at gmail.com>
---
block/Kconfig | 8 ++++++++
block/Makefile | 1 +
2 files changed, 9 insertions(+)
diff --git a/block/Kconfig b/block/Kconfig
index fd732aede922..ef05b36b5251 100644
--- a/block/Kconfig
+++ b/block/Kconfig
@@ -220,6 +220,14 @@ config BLK_INLINE_ENCRYPTION_FALLBACK
by falling back to the kernel crypto API when inline
encryption hardware is not present.
+config BLK_LED_TRIGGERS
+ bool "Enable the blkdev LED trigger"
+ depends on LEDS_TRIGGERS
+ help
+ The blkdev LED trigger allows LEDs to be controlled by
+ block device activity (reads and writes). See
+ Documentation/block/blk-ledtrig.rst.
+
menu "Partition Types"
source "block/partitions/Kconfig"
diff --git a/block/Makefile b/block/Makefile
index bfbe4e13ca1e..bcd97ee26462 100644
--- a/block/Makefile
+++ b/block/Makefile
@@ -42,3 +42,4 @@ obj-$(CONFIG_BLK_SED_OPAL) += sed-opal.o
obj-$(CONFIG_BLK_PM) += blk-pm.o
obj-$(CONFIG_BLK_INLINE_ENCRYPTION) += keyslot-manager.o blk-crypto.o
obj-$(CONFIG_BLK_INLINE_ENCRYPTION_FALLBACK) += blk-crypto-fallback.o
+obj-$(CONFIG_BLK_LED_TRIGGERS) += blk-ledtrig.o
--
2.31.1
More information about the Kernelnewbies
mailing list