diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2018-06-26 05:37:58 -0400 |
---|---|---|
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | 2018-06-28 15:34:44 -0400 |
commit | 3d74243db89f9c7cea7afc471f67e15b96cc6278 (patch) | |
tree | 60abaf9fb1009c3b1d7d910562872b08a8c94303 /drivers/leds | |
parent | 8cb21086cc6359c6d4f003a788050308afb211ad (diff) |
leds: triggers: don't depend on LEDS_TRIGGERS twice
All the triggers are defined in a big if LEDS_TRIGGERS...endif block.
So there is no need to let each driver depend on LEDS_TRIGGERS explicitly
once more.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/trigger/Kconfig | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/leds/trigger/Kconfig b/drivers/leds/trigger/Kconfig index a2559b4fdfff..4018af769969 100644 --- a/drivers/leds/trigger/Kconfig +++ b/drivers/leds/trigger/Kconfig | |||
@@ -10,7 +10,6 @@ if LEDS_TRIGGERS | |||
10 | 10 | ||
11 | config LEDS_TRIGGER_TIMER | 11 | config LEDS_TRIGGER_TIMER |
12 | tristate "LED Timer Trigger" | 12 | tristate "LED Timer Trigger" |
13 | depends on LEDS_TRIGGERS | ||
14 | help | 13 | help |
15 | This allows LEDs to be controlled by a programmable timer | 14 | This allows LEDs to be controlled by a programmable timer |
16 | via sysfs. Some LED hardware can be programmed to start | 15 | via sysfs. Some LED hardware can be programmed to start |
@@ -21,7 +20,6 @@ config LEDS_TRIGGER_TIMER | |||
21 | 20 | ||
22 | config LEDS_TRIGGER_ONESHOT | 21 | config LEDS_TRIGGER_ONESHOT |
23 | tristate "LED One-shot Trigger" | 22 | tristate "LED One-shot Trigger" |
24 | depends on LEDS_TRIGGERS | ||
25 | help | 23 | help |
26 | This allows LEDs to blink in one-shot pulses with parameters | 24 | This allows LEDs to blink in one-shot pulses with parameters |
27 | controlled via sysfs. It's useful to notify the user on | 25 | controlled via sysfs. It's useful to notify the user on |
@@ -36,7 +34,6 @@ config LEDS_TRIGGER_ONESHOT | |||
36 | config LEDS_TRIGGER_DISK | 34 | config LEDS_TRIGGER_DISK |
37 | bool "LED Disk Trigger" | 35 | bool "LED Disk Trigger" |
38 | depends on IDE_GD_ATA || ATA | 36 | depends on IDE_GD_ATA || ATA |
39 | depends on LEDS_TRIGGERS | ||
40 | help | 37 | help |
41 | This allows LEDs to be controlled by disk activity. | 38 | This allows LEDs to be controlled by disk activity. |
42 | If unsure, say Y. | 39 | If unsure, say Y. |
@@ -44,14 +41,12 @@ config LEDS_TRIGGER_DISK | |||
44 | config LEDS_TRIGGER_MTD | 41 | config LEDS_TRIGGER_MTD |
45 | bool "LED MTD (NAND/NOR) Trigger" | 42 | bool "LED MTD (NAND/NOR) Trigger" |
46 | depends on MTD | 43 | depends on MTD |
47 | depends on LEDS_TRIGGERS | ||
48 | help | 44 | help |
49 | This allows LEDs to be controlled by MTD activity. | 45 | This allows LEDs to be controlled by MTD activity. |
50 | If unsure, say N. | 46 | If unsure, say N. |
51 | 47 | ||
52 | config LEDS_TRIGGER_HEARTBEAT | 48 | config LEDS_TRIGGER_HEARTBEAT |
53 | tristate "LED Heartbeat Trigger" | 49 | tristate "LED Heartbeat Trigger" |
54 | depends on LEDS_TRIGGERS | ||
55 | help | 50 | help |
56 | This allows LEDs to be controlled by a CPU load average. | 51 | This allows LEDs to be controlled by a CPU load average. |
57 | The flash frequency is a hyperbolic function of the 1-minute | 52 | The flash frequency is a hyperbolic function of the 1-minute |
@@ -60,7 +55,6 @@ config LEDS_TRIGGER_HEARTBEAT | |||
60 | 55 | ||
61 | config LEDS_TRIGGER_BACKLIGHT | 56 | config LEDS_TRIGGER_BACKLIGHT |
62 | tristate "LED backlight Trigger" | 57 | tristate "LED backlight Trigger" |
63 | depends on LEDS_TRIGGERS | ||
64 | help | 58 | help |
65 | This allows LEDs to be controlled as a backlight device: they | 59 | This allows LEDs to be controlled as a backlight device: they |
66 | turn off and on when the display is blanked and unblanked. | 60 | turn off and on when the display is blanked and unblanked. |
@@ -69,7 +63,6 @@ config LEDS_TRIGGER_BACKLIGHT | |||
69 | 63 | ||
70 | config LEDS_TRIGGER_CPU | 64 | config LEDS_TRIGGER_CPU |
71 | bool "LED CPU Trigger" | 65 | bool "LED CPU Trigger" |
72 | depends on LEDS_TRIGGERS | ||
73 | help | 66 | help |
74 | This allows LEDs to be controlled by active CPUs. This shows | 67 | This allows LEDs to be controlled by active CPUs. This shows |
75 | the active CPUs across an array of LEDs so you can see which | 68 | the active CPUs across an array of LEDs so you can see which |
@@ -79,7 +72,6 @@ config LEDS_TRIGGER_CPU | |||
79 | 72 | ||
80 | config LEDS_TRIGGER_ACTIVITY | 73 | config LEDS_TRIGGER_ACTIVITY |
81 | tristate "LED activity Trigger" | 74 | tristate "LED activity Trigger" |
82 | depends on LEDS_TRIGGERS | ||
83 | help | 75 | help |
84 | This allows LEDs to be controlled by an immediate CPU usage. | 76 | This allows LEDs to be controlled by an immediate CPU usage. |
85 | The flash frequency and duty cycle varies from faint flashes to | 77 | The flash frequency and duty cycle varies from faint flashes to |
@@ -88,7 +80,6 @@ config LEDS_TRIGGER_ACTIVITY | |||
88 | 80 | ||
89 | config LEDS_TRIGGER_GPIO | 81 | config LEDS_TRIGGER_GPIO |
90 | tristate "LED GPIO Trigger" | 82 | tristate "LED GPIO Trigger" |
91 | depends on LEDS_TRIGGERS | ||
92 | depends on GPIOLIB || COMPILE_TEST | 83 | depends on GPIOLIB || COMPILE_TEST |
93 | help | 84 | help |
94 | This allows LEDs to be controlled by gpio events. It's good | 85 | This allows LEDs to be controlled by gpio events. It's good |
@@ -101,7 +92,6 @@ config LEDS_TRIGGER_GPIO | |||
101 | 92 | ||
102 | config LEDS_TRIGGER_DEFAULT_ON | 93 | config LEDS_TRIGGER_DEFAULT_ON |
103 | tristate "LED Default ON Trigger" | 94 | tristate "LED Default ON Trigger" |
104 | depends on LEDS_TRIGGERS | ||
105 | help | 95 | help |
106 | This allows LEDs to be initialised in the ON state. | 96 | This allows LEDs to be initialised in the ON state. |
107 | If unsure, say Y. | 97 | If unsure, say Y. |
@@ -111,7 +101,6 @@ comment "iptables trigger is under Netfilter config (LED target)" | |||
111 | 101 | ||
112 | config LEDS_TRIGGER_TRANSIENT | 102 | config LEDS_TRIGGER_TRANSIENT |
113 | tristate "LED Transient Trigger" | 103 | tristate "LED Transient Trigger" |
114 | depends on LEDS_TRIGGERS | ||
115 | help | 104 | help |
116 | This allows one time activation of a transient state on | 105 | This allows one time activation of a transient state on |
117 | GPIO/PWM based hardware. | 106 | GPIO/PWM based hardware. |
@@ -119,7 +108,6 @@ config LEDS_TRIGGER_TRANSIENT | |||
119 | 108 | ||
120 | config LEDS_TRIGGER_CAMERA | 109 | config LEDS_TRIGGER_CAMERA |
121 | tristate "LED Camera Flash/Torch Trigger" | 110 | tristate "LED Camera Flash/Torch Trigger" |
122 | depends on LEDS_TRIGGERS | ||
123 | help | 111 | help |
124 | This allows LEDs to be controlled as a camera flash/torch device. | 112 | This allows LEDs to be controlled as a camera flash/torch device. |
125 | This enables direct flash/torch on/off by the driver, kernel space. | 113 | This enables direct flash/torch on/off by the driver, kernel space. |
@@ -127,7 +115,6 @@ config LEDS_TRIGGER_CAMERA | |||
127 | 115 | ||
128 | config LEDS_TRIGGER_PANIC | 116 | config LEDS_TRIGGER_PANIC |
129 | bool "LED Panic Trigger" | 117 | bool "LED Panic Trigger" |
130 | depends on LEDS_TRIGGERS | ||
131 | help | 118 | help |
132 | This allows LEDs to be configured to blink on a kernel panic. | 119 | This allows LEDs to be configured to blink on a kernel panic. |
133 | Enabling this option will allow to mark certain LEDs as panic indicators, | 120 | Enabling this option will allow to mark certain LEDs as panic indicators, |
@@ -137,7 +124,7 @@ config LEDS_TRIGGER_PANIC | |||
137 | 124 | ||
138 | config LEDS_TRIGGER_NETDEV | 125 | config LEDS_TRIGGER_NETDEV |
139 | tristate "LED Netdev Trigger" | 126 | tristate "LED Netdev Trigger" |
140 | depends on NET && LEDS_TRIGGERS | 127 | depends on NET |
141 | help | 128 | help |
142 | This allows LEDs to be controlled by network device activity. | 129 | This allows LEDs to be controlled by network device activity. |
143 | If unsure, say Y. | 130 | If unsure, say Y. |