[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210809033217.1113444-11-arequipeno@gmail.com>
Date: Sun, 8 Aug 2021 22:32:17 -0500
From: Ian Pilcher <arequipeno@...il.com>
To: linux-block@...r.kernel.org, linux-leds@...r.kernel.org
Cc: axboe@...nel.dk, pavel@....cz, linux-kernel@...r.kernel.org,
kernelnewbies@...nelnewbies.org
Subject: [RFC PATCH v2 10/10] block: Add config option to enable block device LED triggers
Signed-off-by: Ian Pilcher <arequipeno@...il.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
Powered by blists - more mailing lists