diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2010-01-20 18:08:30 -0500 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-03-16 15:49:21 -0400 |
commit | d09e16664be88dc8463fe7508a2123460bf6d676 (patch) | |
tree | 892f39600b791a1cc88637381c084b3d49e26192 | |
parent | bb9b6ef70f08f256ab4b8ec127c17ee629b85350 (diff) |
leds: Kconfig cleanup
Remove the need for "depends on LEDS_CLASS" by wrapping the affected
config options in an if/endif block. Similar for "depends on LEDS_TRIGGERS".
LEDS_COBALT_RAQ still has a "depends on LEDS_CLASS=y" since it cannot
be selected to build as a module.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r-- | drivers/leds/Kconfig | 75 |
1 files changed, 39 insertions, 36 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig index 023eda6dfdb6..d86e1a3ee0b7 100644 --- a/drivers/leds/Kconfig +++ b/drivers/leds/Kconfig | |||
@@ -15,6 +15,8 @@ config LEDS_CLASS | |||
15 | This option enables the led sysfs class in /sys/class/leds. You'll | 15 | This option enables the led sysfs class in /sys/class/leds. You'll |
16 | need this to do anything useful with LEDs. If unsure, say N. | 16 | need this to do anything useful with LEDs. If unsure, say N. |
17 | 17 | ||
18 | if LEDS_CLASS | ||
19 | |||
18 | comment "LED drivers" | 20 | comment "LED drivers" |
19 | 21 | ||
20 | config LEDS_88PM860X | 22 | config LEDS_88PM860X |
@@ -26,73 +28,73 @@ config LEDS_88PM860X | |||
26 | 28 | ||
27 | config LEDS_ATMEL_PWM | 29 | config LEDS_ATMEL_PWM |
28 | tristate "LED Support using Atmel PWM outputs" | 30 | tristate "LED Support using Atmel PWM outputs" |
29 | depends on LEDS_CLASS && ATMEL_PWM | 31 | depends on ATMEL_PWM |
30 | help | 32 | help |
31 | This option enables support for LEDs driven using outputs | 33 | This option enables support for LEDs driven using outputs |
32 | of the dedicated PWM controller found on newer Atmel SOCs. | 34 | of the dedicated PWM controller found on newer Atmel SOCs. |
33 | 35 | ||
34 | config LEDS_LOCOMO | 36 | config LEDS_LOCOMO |
35 | tristate "LED Support for Locomo device" | 37 | tristate "LED Support for Locomo device" |
36 | depends on LEDS_CLASS && SHARP_LOCOMO | 38 | depends on SHARP_LOCOMO |
37 | help | 39 | help |
38 | This option enables support for the LEDs on Sharp Locomo. | 40 | This option enables support for the LEDs on Sharp Locomo. |
39 | Zaurus models SL-5500 and SL-5600. | 41 | Zaurus models SL-5500 and SL-5600. |
40 | 42 | ||
41 | config LEDS_MIKROTIK_RB532 | 43 | config LEDS_MIKROTIK_RB532 |
42 | tristate "LED Support for Mikrotik Routerboard 532" | 44 | tristate "LED Support for Mikrotik Routerboard 532" |
43 | depends on LEDS_CLASS && MIKROTIK_RB532 | 45 | depends on MIKROTIK_RB532 |
44 | help | 46 | help |
45 | This option enables support for the so called "User LED" of | 47 | This option enables support for the so called "User LED" of |
46 | Mikrotik's Routerboard 532. | 48 | Mikrotik's Routerboard 532. |
47 | 49 | ||
48 | config LEDS_S3C24XX | 50 | config LEDS_S3C24XX |
49 | tristate "LED Support for Samsung S3C24XX GPIO LEDs" | 51 | tristate "LED Support for Samsung S3C24XX GPIO LEDs" |
50 | depends on LEDS_CLASS && ARCH_S3C2410 | 52 | depends on ARCH_S3C2410 |
51 | help | 53 | help |
52 | This option enables support for LEDs connected to GPIO lines | 54 | This option enables support for LEDs connected to GPIO lines |
53 | on Samsung S3C24XX series CPUs, such as the S3C2410 and S3C2440. | 55 | on Samsung S3C24XX series CPUs, such as the S3C2410 and S3C2440. |
54 | 56 | ||
55 | config LEDS_AMS_DELTA | 57 | config LEDS_AMS_DELTA |
56 | tristate "LED Support for the Amstrad Delta (E3)" | 58 | tristate "LED Support for the Amstrad Delta (E3)" |
57 | depends on LEDS_CLASS && MACH_AMS_DELTA | 59 | depends on MACH_AMS_DELTA |
58 | help | 60 | help |
59 | This option enables support for the LEDs on Amstrad Delta (E3). | 61 | This option enables support for the LEDs on Amstrad Delta (E3). |
60 | 62 | ||
61 | config LEDS_NET48XX | 63 | config LEDS_NET48XX |
62 | tristate "LED Support for Soekris net48xx series Error LED" | 64 | tristate "LED Support for Soekris net48xx series Error LED" |
63 | depends on LEDS_CLASS && SCx200_GPIO | 65 | depends on SCx200_GPIO |
64 | help | 66 | help |
65 | This option enables support for the Soekris net4801 and net4826 error | 67 | This option enables support for the Soekris net4801 and net4826 error |
66 | LED. | 68 | LED. |
67 | 69 | ||
68 | config LEDS_FSG | 70 | config LEDS_FSG |
69 | tristate "LED Support for the Freecom FSG-3" | 71 | tristate "LED Support for the Freecom FSG-3" |
70 | depends on LEDS_CLASS && MACH_FSG | 72 | depends on MACH_FSG |
71 | help | 73 | help |
72 | This option enables support for the LEDs on the Freecom FSG-3. | 74 | This option enables support for the LEDs on the Freecom FSG-3. |
73 | 75 | ||
74 | config LEDS_WRAP | 76 | config LEDS_WRAP |
75 | tristate "LED Support for the WRAP series LEDs" | 77 | tristate "LED Support for the WRAP series LEDs" |
76 | depends on LEDS_CLASS && SCx200_GPIO | 78 | depends on SCx200_GPIO |
77 | help | 79 | help |
78 | This option enables support for the PCEngines WRAP programmable LEDs. | 80 | This option enables support for the PCEngines WRAP programmable LEDs. |
79 | 81 | ||
80 | config LEDS_ALIX2 | 82 | config LEDS_ALIX2 |
81 | tristate "LED Support for ALIX.2 and ALIX.3 series" | 83 | tristate "LED Support for ALIX.2 and ALIX.3 series" |
82 | depends on LEDS_CLASS && X86 && !GPIO_CS5535 && !CS5535_GPIO | 84 | depends on X86 && !GPIO_CS5535 && !CS5535_GPIO |
83 | help | 85 | help |
84 | This option enables support for the PCEngines ALIX.2 and ALIX.3 LEDs. | 86 | This option enables support for the PCEngines ALIX.2 and ALIX.3 LEDs. |
85 | You have to set leds-alix2.force=1 for boards with Award BIOS. | 87 | You have to set leds-alix2.force=1 for boards with Award BIOS. |
86 | 88 | ||
87 | config LEDS_H1940 | 89 | config LEDS_H1940 |
88 | tristate "LED Support for iPAQ H1940 device" | 90 | tristate "LED Support for iPAQ H1940 device" |
89 | depends on LEDS_CLASS && ARCH_H1940 | 91 | depends on ARCH_H1940 |
90 | help | 92 | help |
91 | This option enables support for the LEDs on the h1940. | 93 | This option enables support for the LEDs on the h1940. |
92 | 94 | ||
93 | config LEDS_COBALT_QUBE | 95 | config LEDS_COBALT_QUBE |
94 | tristate "LED Support for the Cobalt Qube series front LED" | 96 | tristate "LED Support for the Cobalt Qube series front LED" |
95 | depends on LEDS_CLASS && MIPS_COBALT | 97 | depends on MIPS_COBALT |
96 | help | 98 | help |
97 | This option enables support for the front LED on Cobalt Qube series | 99 | This option enables support for the front LED on Cobalt Qube series |
98 | 100 | ||
@@ -105,7 +107,7 @@ config LEDS_COBALT_RAQ | |||
105 | 107 | ||
106 | config LEDS_SUNFIRE | 108 | config LEDS_SUNFIRE |
107 | tristate "LED support for SunFire servers." | 109 | tristate "LED support for SunFire servers." |
108 | depends on LEDS_CLASS && SPARC64 | 110 | depends on SPARC64 |
109 | select LEDS_TRIGGERS | 111 | select LEDS_TRIGGERS |
110 | help | 112 | help |
111 | This option enables support for the Left, Middle, and Right | 113 | This option enables support for the Left, Middle, and Right |
@@ -113,14 +115,14 @@ config LEDS_SUNFIRE | |||
113 | 115 | ||
114 | config LEDS_HP6XX | 116 | config LEDS_HP6XX |
115 | tristate "LED Support for the HP Jornada 6xx" | 117 | tristate "LED Support for the HP Jornada 6xx" |
116 | depends on LEDS_CLASS && SH_HP6XX | 118 | depends on SH_HP6XX |
117 | help | 119 | help |
118 | This option enables LED support for the handheld | 120 | This option enables LED support for the handheld |
119 | HP Jornada 620/660/680/690. | 121 | HP Jornada 620/660/680/690. |
120 | 122 | ||
121 | config LEDS_PCA9532 | 123 | config LEDS_PCA9532 |
122 | tristate "LED driver for PCA9532 dimmer" | 124 | tristate "LED driver for PCA9532 dimmer" |
123 | depends on LEDS_CLASS && I2C && INPUT && EXPERIMENTAL | 125 | depends on I2C && INPUT && EXPERIMENTAL |
124 | help | 126 | help |
125 | This option enables support for NXP pca9532 | 127 | This option enables support for NXP pca9532 |
126 | LED controller. It is generally only useful | 128 | LED controller. It is generally only useful |
@@ -128,7 +130,7 @@ config LEDS_PCA9532 | |||
128 | 130 | ||
129 | config LEDS_GPIO | 131 | config LEDS_GPIO |
130 | tristate "LED Support for GPIO connected LEDs" | 132 | tristate "LED Support for GPIO connected LEDs" |
131 | depends on LEDS_CLASS && GENERIC_GPIO | 133 | depends on GENERIC_GPIO |
132 | help | 134 | help |
133 | This option enables support for the LEDs connected to GPIO | 135 | This option enables support for the LEDs connected to GPIO |
134 | outputs. To be useful the particular board must have LEDs | 136 | outputs. To be useful the particular board must have LEDs |
@@ -155,7 +157,7 @@ config LEDS_GPIO_OF | |||
155 | 157 | ||
156 | config LEDS_LP3944 | 158 | config LEDS_LP3944 |
157 | tristate "LED Support for N.S. LP3944 (Fun Light) I2C chip" | 159 | tristate "LED Support for N.S. LP3944 (Fun Light) I2C chip" |
158 | depends on LEDS_CLASS && I2C | 160 | depends on I2C |
159 | help | 161 | help |
160 | This option enables support for LEDs connected to the National | 162 | This option enables support for LEDs connected to the National |
161 | Semiconductor LP3944 Lighting Management Unit (LMU) also known as | 163 | Semiconductor LP3944 Lighting Management Unit (LMU) also known as |
@@ -166,7 +168,7 @@ config LEDS_LP3944 | |||
166 | 168 | ||
167 | config LEDS_CLEVO_MAIL | 169 | config LEDS_CLEVO_MAIL |
168 | tristate "Mail LED on Clevo notebook" | 170 | tristate "Mail LED on Clevo notebook" |
169 | depends on LEDS_CLASS && X86 && SERIO_I8042 && DMI | 171 | depends on X86 && SERIO_I8042 && DMI |
170 | help | 172 | help |
171 | This driver makes the mail LED accessible from userspace | 173 | This driver makes the mail LED accessible from userspace |
172 | programs through the leds subsystem. This LED have three | 174 | programs through the leds subsystem. This LED have three |
@@ -196,7 +198,7 @@ config LEDS_CLEVO_MAIL | |||
196 | 198 | ||
197 | config LEDS_PCA955X | 199 | config LEDS_PCA955X |
198 | tristate "LED Support for PCA955x I2C chips" | 200 | tristate "LED Support for PCA955x I2C chips" |
199 | depends on LEDS_CLASS && I2C | 201 | depends on I2C |
200 | help | 202 | help |
201 | This option enables support for LEDs connected to PCA955x | 203 | This option enables support for LEDs connected to PCA955x |
202 | LED driver chips accessed via the I2C bus. Supported | 204 | LED driver chips accessed via the I2C bus. Supported |
@@ -204,54 +206,54 @@ config LEDS_PCA955X | |||
204 | 206 | ||
205 | config LEDS_WM831X_STATUS | 207 | config LEDS_WM831X_STATUS |
206 | tristate "LED support for status LEDs on WM831x PMICs" | 208 | tristate "LED support for status LEDs on WM831x PMICs" |
207 | depends on LEDS_CLASS && MFD_WM831X | 209 | depends on MFD_WM831X |
208 | help | 210 | help |
209 | This option enables support for the status LEDs of the WM831x | 211 | This option enables support for the status LEDs of the WM831x |
210 | series of PMICs. | 212 | series of PMICs. |
211 | 213 | ||
212 | config LEDS_WM8350 | 214 | config LEDS_WM8350 |
213 | tristate "LED Support for WM8350 AudioPlus PMIC" | 215 | tristate "LED Support for WM8350 AudioPlus PMIC" |
214 | depends on LEDS_CLASS && MFD_WM8350 | 216 | depends on MFD_WM8350 |
215 | help | 217 | help |
216 | This option enables support for LEDs driven by the Wolfson | 218 | This option enables support for LEDs driven by the Wolfson |
217 | Microelectronics WM8350 AudioPlus PMIC. | 219 | Microelectronics WM8350 AudioPlus PMIC. |
218 | 220 | ||
219 | config LEDS_DA903X | 221 | config LEDS_DA903X |
220 | tristate "LED Support for DA9030/DA9034 PMIC" | 222 | tristate "LED Support for DA9030/DA9034 PMIC" |
221 | depends on LEDS_CLASS && PMIC_DA903X | 223 | depends on PMIC_DA903X |
222 | help | 224 | help |
223 | This option enables support for on-chip LED drivers found | 225 | This option enables support for on-chip LED drivers found |
224 | on Dialog Semiconductor DA9030/DA9034 PMICs. | 226 | on Dialog Semiconductor DA9030/DA9034 PMICs. |
225 | 227 | ||
226 | config LEDS_DAC124S085 | 228 | config LEDS_DAC124S085 |
227 | tristate "LED Support for DAC124S085 SPI DAC" | 229 | tristate "LED Support for DAC124S085 SPI DAC" |
228 | depends on LEDS_CLASS && SPI | 230 | depends on SPI |
229 | help | 231 | help |
230 | This option enables support for DAC124S085 SPI DAC from NatSemi, | 232 | This option enables support for DAC124S085 SPI DAC from NatSemi, |
231 | which can be used to control up to four LEDs. | 233 | which can be used to control up to four LEDs. |
232 | 234 | ||
233 | config LEDS_PWM | 235 | config LEDS_PWM |
234 | tristate "PWM driven LED Support" | 236 | tristate "PWM driven LED Support" |
235 | depends on LEDS_CLASS && HAVE_PWM | 237 | depends on HAVE_PWM |
236 | help | 238 | help |
237 | This option enables support for pwm driven LEDs | 239 | This option enables support for pwm driven LEDs |
238 | 240 | ||
239 | config LEDS_REGULATOR | 241 | config LEDS_REGULATOR |
240 | tristate "REGULATOR driven LED support" | 242 | tristate "REGULATOR driven LED support" |
241 | depends on LEDS_CLASS && REGULATOR | 243 | depends on REGULATOR |
242 | help | 244 | help |
243 | This option enables support for regulator driven LEDs. | 245 | This option enables support for regulator driven LEDs. |
244 | 246 | ||
245 | config LEDS_BD2802 | 247 | config LEDS_BD2802 |
246 | tristate "LED driver for BD2802 RGB LED" | 248 | tristate "LED driver for BD2802 RGB LED" |
247 | depends on LEDS_CLASS && I2C | 249 | depends on I2C |
248 | help | 250 | help |
249 | This option enables support for BD2802GU RGB LED driver chips | 251 | This option enables support for BD2802GU RGB LED driver chips |
250 | accessed via the I2C bus. | 252 | accessed via the I2C bus. |
251 | 253 | ||
252 | config LEDS_INTEL_SS4200 | 254 | config LEDS_INTEL_SS4200 |
253 | tristate "LED driver for Intel NAS SS4200 series" | 255 | tristate "LED driver for Intel NAS SS4200 series" |
254 | depends on LEDS_CLASS && PCI && DMI | 256 | depends on PCI && DMI |
255 | help | 257 | help |
256 | This option enables support for the Intel SS4200 series of | 258 | This option enables support for the Intel SS4200 series of |
257 | Network Attached Storage servers. You may control the hard | 259 | Network Attached Storage servers. You may control the hard |
@@ -260,7 +262,7 @@ config LEDS_INTEL_SS4200 | |||
260 | 262 | ||
261 | config LEDS_LT3593 | 263 | config LEDS_LT3593 |
262 | tristate "LED driver for LT3593 controllers" | 264 | tristate "LED driver for LT3593 controllers" |
263 | depends on LEDS_CLASS && GENERIC_GPIO | 265 | depends on GENERIC_GPIO |
264 | help | 266 | help |
265 | This option enables support for LEDs driven by a Linear Technology | 267 | This option enables support for LEDs driven by a Linear Technology |
266 | LT3593 controller. This controller uses a special one-wire pulse | 268 | LT3593 controller. This controller uses a special one-wire pulse |
@@ -268,7 +270,7 @@ config LEDS_LT3593 | |||
268 | 270 | ||
269 | config LEDS_ADP5520 | 271 | config LEDS_ADP5520 |
270 | tristate "LED Support for ADP5520/ADP5501 PMIC" | 272 | tristate "LED Support for ADP5520/ADP5501 PMIC" |
271 | depends on LEDS_CLASS && PMIC_ADP5520 | 273 | depends on PMIC_ADP5520 |
272 | help | 274 | help |
273 | This option enables support for on-chip LED drivers found | 275 | This option enables support for on-chip LED drivers found |
274 | on Analog Devices ADP5520/ADP5501 PMICs. | 276 | on Analog Devices ADP5520/ADP5501 PMICs. |
@@ -276,8 +278,6 @@ config LEDS_ADP5520 | |||
276 | To compile this driver as a module, choose M here: the module will | 278 | To compile this driver as a module, choose M here: the module will |
277 | be called leds-adp5520. | 279 | be called leds-adp5520. |
278 | 280 | ||
279 | comment "LED Triggers" | ||
280 | |||
281 | config LEDS_TRIGGERS | 281 | config LEDS_TRIGGERS |
282 | bool "LED Trigger support" | 282 | bool "LED Trigger support" |
283 | help | 283 | help |
@@ -285,9 +285,12 @@ config LEDS_TRIGGERS | |||
285 | These triggers allow kernel events to drive the LEDs and can | 285 | These triggers allow kernel events to drive the LEDs and can |
286 | be configured via sysfs. If unsure, say Y. | 286 | be configured via sysfs. If unsure, say Y. |
287 | 287 | ||
288 | if LEDS_TRIGGERS | ||
289 | |||
290 | comment "LED Triggers" | ||
291 | |||
288 | config LEDS_TRIGGER_TIMER | 292 | config LEDS_TRIGGER_TIMER |
289 | tristate "LED Timer Trigger" | 293 | tristate "LED Timer Trigger" |
290 | depends on LEDS_TRIGGERS | ||
291 | help | 294 | help |
292 | This allows LEDs to be controlled by a programmable timer | 295 | This allows LEDs to be controlled by a programmable timer |
293 | via sysfs. Some LED hardware can be programmed to start | 296 | via sysfs. Some LED hardware can be programmed to start |
@@ -298,14 +301,13 @@ config LEDS_TRIGGER_TIMER | |||
298 | 301 | ||
299 | config LEDS_TRIGGER_IDE_DISK | 302 | config LEDS_TRIGGER_IDE_DISK |
300 | bool "LED IDE Disk Trigger" | 303 | bool "LED IDE Disk Trigger" |
301 | depends on LEDS_TRIGGERS && IDE_GD_ATA | 304 | depends on IDE_GD_ATA |
302 | help | 305 | help |
303 | This allows LEDs to be controlled by IDE disk activity. | 306 | This allows LEDs to be controlled by IDE disk activity. |
304 | If unsure, say Y. | 307 | If unsure, say Y. |
305 | 308 | ||
306 | config LEDS_TRIGGER_HEARTBEAT | 309 | config LEDS_TRIGGER_HEARTBEAT |
307 | tristate "LED Heartbeat Trigger" | 310 | tristate "LED Heartbeat Trigger" |
308 | depends on LEDS_TRIGGERS | ||
309 | help | 311 | help |
310 | This allows LEDs to be controlled by a CPU load average. | 312 | This allows LEDs to be controlled by a CPU load average. |
311 | The flash frequency is a hyperbolic function of the 1-minute | 313 | The flash frequency is a hyperbolic function of the 1-minute |
@@ -314,7 +316,6 @@ config LEDS_TRIGGER_HEARTBEAT | |||
314 | 316 | ||
315 | config LEDS_TRIGGER_BACKLIGHT | 317 | config LEDS_TRIGGER_BACKLIGHT |
316 | tristate "LED backlight Trigger" | 318 | tristate "LED backlight Trigger" |
317 | depends on LEDS_TRIGGERS | ||
318 | help | 319 | help |
319 | This allows LEDs to be controlled as a backlight device: they | 320 | This allows LEDs to be controlled as a backlight device: they |
320 | turn off and on when the display is blanked and unblanked. | 321 | turn off and on when the display is blanked and unblanked. |
@@ -323,7 +324,6 @@ config LEDS_TRIGGER_BACKLIGHT | |||
323 | 324 | ||
324 | config LEDS_TRIGGER_GPIO | 325 | config LEDS_TRIGGER_GPIO |
325 | tristate "LED GPIO Trigger" | 326 | tristate "LED GPIO Trigger" |
326 | depends on LEDS_TRIGGERS | ||
327 | depends on GPIOLIB | 327 | depends on GPIOLIB |
328 | help | 328 | help |
329 | This allows LEDs to be controlled by gpio events. It's good | 329 | This allows LEDs to be controlled by gpio events. It's good |
@@ -336,7 +336,6 @@ config LEDS_TRIGGER_GPIO | |||
336 | 336 | ||
337 | config LEDS_TRIGGER_DEFAULT_ON | 337 | config LEDS_TRIGGER_DEFAULT_ON |
338 | tristate "LED Default ON Trigger" | 338 | tristate "LED Default ON Trigger" |
339 | depends on LEDS_TRIGGERS | ||
340 | help | 339 | help |
341 | This allows LEDs to be initialised in the ON state. | 340 | This allows LEDs to be initialised in the ON state. |
342 | If unsure, say Y. | 341 | If unsure, say Y. |
@@ -344,4 +343,8 @@ config LEDS_TRIGGER_DEFAULT_ON | |||
344 | comment "iptables trigger is under Netfilter config (LED target)" | 343 | comment "iptables trigger is under Netfilter config (LED target)" |
345 | depends on LEDS_TRIGGERS | 344 | depends on LEDS_TRIGGERS |
346 | 345 | ||
346 | endif # LEDS_TRIGGERS | ||
347 | |||
348 | endif # LEDS_CLASS | ||
349 | |||
347 | endif # NEW_LEDS | 350 | endif # NEW_LEDS |