aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2010-03-30 14:17:35 -0400
committerRichard Purdie <rpurdie@linux.intel.com>2010-05-26 08:08:31 -0400
commit8fdd5767ebe5806f02e1c8d9ac67ac4da8836f53 (patch)
tree8c83ac0cf39260cf11dddc67675122a6c6ab51e0 /drivers/video/backlight
parent3e4a326df654d748d73600068fbdbdfed0b0db43 (diff)
backlight: Kconfig cleanup
Cleanup the "depends on" logic by wrapping the affected config options in appropriate if/endif blocks. Remove all the "default n" since that is the default default. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r--drivers/video/backlight/Kconfig79
1 files changed, 35 insertions, 44 deletions
diff --git a/drivers/video/backlight/Kconfig b/drivers/video/backlight/Kconfig
index c025c84601b0..4dfb5f44dffd 100644
--- a/drivers/video/backlight/Kconfig
+++ b/drivers/video/backlight/Kconfig
@@ -8,12 +8,13 @@ menuconfig BACKLIGHT_LCD_SUPPORT
8 Enable this to be able to choose the drivers for controlling the 8 Enable this to be able to choose the drivers for controlling the
9 backlight and the LCD panel on some platforms, for example on PDAs. 9 backlight and the LCD panel on some platforms, for example on PDAs.
10 10
11if BACKLIGHT_LCD_SUPPORT
12
11# 13#
12# LCD 14# LCD
13# 15#
14config LCD_CLASS_DEVICE 16config LCD_CLASS_DEVICE
15 tristate "Lowlevel LCD controls" 17 tristate "Lowlevel LCD controls"
16 depends on BACKLIGHT_LCD_SUPPORT
17 default m 18 default m
18 help 19 help
19 This framework adds support for low-level control of LCD. 20 This framework adds support for low-level control of LCD.
@@ -24,31 +25,32 @@ config LCD_CLASS_DEVICE
24 To have support for your specific LCD panel you will have to 25 To have support for your specific LCD panel you will have to
25 select the proper drivers which depend on this option. 26 select the proper drivers which depend on this option.
26 27
28if LCD_CLASS_DEVICE
29
27config LCD_CORGI 30config LCD_CORGI
28 tristate "LCD Panel support for SHARP corgi/spitz model" 31 tristate "LCD Panel support for SHARP corgi/spitz model"
29 depends on LCD_CLASS_DEVICE && SPI_MASTER && PXA_SHARPSL 32 depends on SPI_MASTER && PXA_SHARPSL
30 help 33 help
31 Say y here to support the LCD panels usually found on SHARP 34 Say y here to support the LCD panels usually found on SHARP
32 corgi (C7x0) and spitz (Cxx00) models. 35 corgi (C7x0) and spitz (Cxx00) models.
33 36
34config LCD_L4F00242T03 37config LCD_L4F00242T03
35 tristate "Epson L4F00242T03 LCD" 38 tristate "Epson L4F00242T03 LCD"
36 depends on LCD_CLASS_DEVICE && SPI_MASTER && GENERIC_GPIO 39 depends on SPI_MASTER && GENERIC_GPIO
37 help 40 help
38 SPI driver for Epson L4F00242T03. This provides basic support 41 SPI driver for Epson L4F00242T03. This provides basic support
39 for init and powering the LCD up/down through a sysfs interface. 42 for init and powering the LCD up/down through a sysfs interface.
40 43
41config LCD_LMS283GF05 44config LCD_LMS283GF05
42 tristate "Samsung LMS283GF05 LCD" 45 tristate "Samsung LMS283GF05 LCD"
43 depends on LCD_CLASS_DEVICE && SPI_MASTER && GENERIC_GPIO 46 depends on SPI_MASTER && GENERIC_GPIO
44 help 47 help
45 SPI driver for Samsung LMS283GF05. This provides basic support 48 SPI driver for Samsung LMS283GF05. This provides basic support
46 for powering the LCD up/down through a sysfs interface. 49 for powering the LCD up/down through a sysfs interface.
47 50
48config LCD_LTV350QV 51config LCD_LTV350QV
49 tristate "Samsung LTV350QV LCD Panel" 52 tristate "Samsung LTV350QV LCD Panel"
50 depends on LCD_CLASS_DEVICE && SPI_MASTER 53 depends on SPI_MASTER
51 default n
52 help 54 help
53 If you have a Samsung LTV350QV LCD panel, say y to include a 55 If you have a Samsung LTV350QV LCD panel, say y to include a
54 power control driver for it. The panel starts up in power 56 power control driver for it. The panel starts up in power
@@ -59,60 +61,53 @@ config LCD_LTV350QV
59 61
60config LCD_ILI9320 62config LCD_ILI9320
61 tristate 63 tristate
62 depends on LCD_CLASS_DEVICE && BACKLIGHT_LCD_SUPPORT
63 default n
64 help 64 help
65 If you have a panel based on the ILI9320 controller chip 65 If you have a panel based on the ILI9320 controller chip
66 then say y to include a power driver for it. 66 then say y to include a power driver for it.
67 67
68config LCD_TDO24M 68config LCD_TDO24M
69 tristate "Toppoly TDO24M and TDO35S LCD Panels support" 69 tristate "Toppoly TDO24M and TDO35S LCD Panels support"
70 depends on LCD_CLASS_DEVICE && SPI_MASTER 70 depends on SPI_MASTER
71 default n
72 help 71 help
73 If you have a Toppoly TDO24M/TDO35S series LCD panel, say y here to 72 If you have a Toppoly TDO24M/TDO35S series LCD panel, say y here to
74 include the support for it. 73 include the support for it.
75 74
76config LCD_VGG2432A4 75config LCD_VGG2432A4
77 tristate "VGG2432A4 LCM device support" 76 tristate "VGG2432A4 LCM device support"
78 depends on BACKLIGHT_LCD_SUPPORT && LCD_CLASS_DEVICE && SPI_MASTER 77 depends on SPI_MASTER
79 select LCD_ILI9320 78 select LCD_ILI9320
80 default n
81 help 79 help
82 If you have a VGG2432A4 panel based on the ILI9320 controller chip 80 If you have a VGG2432A4 panel based on the ILI9320 controller chip
83 then say y to include a power driver for it. 81 then say y to include a power driver for it.
84 82
85config LCD_PLATFORM 83config LCD_PLATFORM
86 tristate "Platform LCD controls" 84 tristate "Platform LCD controls"
87 depends on LCD_CLASS_DEVICE
88 help 85 help
89 This driver provides a platform-device registered LCD power 86 This driver provides a platform-device registered LCD power
90 control interface. 87 control interface.
91 88
92config LCD_TOSA 89config LCD_TOSA
93 tristate "Sharp SL-6000 LCD Driver" 90 tristate "Sharp SL-6000 LCD Driver"
94 depends on LCD_CLASS_DEVICE && SPI 91 depends on SPI && MACH_TOSA
95 depends on MACH_TOSA
96 default n
97 help 92 help
98 If you have an Sharp SL-6000 Zaurus say Y to enable a driver 93 If you have an Sharp SL-6000 Zaurus say Y to enable a driver
99 for its LCD. 94 for its LCD.
100 95
101config LCD_HP700 96config LCD_HP700
102 tristate "HP Jornada 700 series LCD Driver" 97 tristate "HP Jornada 700 series LCD Driver"
103 depends on LCD_CLASS_DEVICE
104 depends on SA1100_JORNADA720_SSP && !PREEMPT 98 depends on SA1100_JORNADA720_SSP && !PREEMPT
105 default y 99 default y
106 help 100 help
107 If you have an HP Jornada 700 series handheld (710/720/728) 101 If you have an HP Jornada 700 series handheld (710/720/728)
108 say Y to enable LCD control driver. 102 say Y to enable LCD control driver.
109 103
104endif # LCD_CLASS_DEVICE
105
110# 106#
111# Backlight 107# Backlight
112# 108#
113config BACKLIGHT_CLASS_DEVICE 109config BACKLIGHT_CLASS_DEVICE
114 tristate "Lowlevel Backlight controls" 110 tristate "Lowlevel Backlight controls"
115 depends on BACKLIGHT_LCD_SUPPORT
116 default m 111 default m
117 help 112 help
118 This framework adds support for low-level control of the LCD 113 This framework adds support for low-level control of the LCD
@@ -121,9 +116,11 @@ config BACKLIGHT_CLASS_DEVICE
121 To have support for your specific LCD panel you will have to 116 To have support for your specific LCD panel you will have to
122 select the proper drivers which depend on this option. 117 select the proper drivers which depend on this option.
123 118
119if BACKLIGHT_CLASS_DEVICE
120
124config BACKLIGHT_ATMEL_LCDC 121config BACKLIGHT_ATMEL_LCDC
125 bool "Atmel LCDC Contrast-as-Backlight control" 122 bool "Atmel LCDC Contrast-as-Backlight control"
126 depends on BACKLIGHT_CLASS_DEVICE && FB_ATMEL 123 depends on FB_ATMEL
127 default y if MACH_SAM9261EK || MACH_SAM9G10EK || MACH_SAM9263EK 124 default y if MACH_SAM9261EK || MACH_SAM9G10EK || MACH_SAM9263EK
128 help 125 help
129 This provides a backlight control internal to the Atmel LCDC 126 This provides a backlight control internal to the Atmel LCDC
@@ -136,8 +133,7 @@ config BACKLIGHT_ATMEL_LCDC
136 133
137config BACKLIGHT_ATMEL_PWM 134config BACKLIGHT_ATMEL_PWM
138 tristate "Atmel PWM backlight control" 135 tristate "Atmel PWM backlight control"
139 depends on BACKLIGHT_CLASS_DEVICE && ATMEL_PWM 136 depends on ATMEL_PWM
140 default n
141 help 137 help
142 Say Y here if you want to use the PWM peripheral in Atmel AT91 and 138 Say Y here if you want to use the PWM peripheral in Atmel AT91 and
143 AVR32 devices. This driver will need additional platform data to know 139 AVR32 devices. This driver will need additional platform data to know
@@ -148,7 +144,6 @@ config BACKLIGHT_ATMEL_PWM
148 144
149config BACKLIGHT_GENERIC 145config BACKLIGHT_GENERIC
150 tristate "Generic (aka Sharp Corgi) Backlight Driver" 146 tristate "Generic (aka Sharp Corgi) Backlight Driver"
151 depends on BACKLIGHT_CLASS_DEVICE
152 default y 147 default y
153 help 148 help
154 Say y to enable the generic platform backlight driver previously 149 Say y to enable the generic platform backlight driver previously
@@ -157,7 +152,7 @@ config BACKLIGHT_GENERIC
157 152
158config BACKLIGHT_LOCOMO 153config BACKLIGHT_LOCOMO
159 tristate "Sharp LOCOMO LCD/Backlight Driver" 154 tristate "Sharp LOCOMO LCD/Backlight Driver"
160 depends on BACKLIGHT_CLASS_DEVICE && SHARP_LOCOMO 155 depends on SHARP_LOCOMO
161 default y 156 default y
162 help 157 help
163 If you have a Sharp Zaurus SL-5500 (Collie) or SL-5600 (Poodle) say y to 158 If you have a Sharp Zaurus SL-5500 (Collie) or SL-5600 (Poodle) say y to
@@ -165,7 +160,7 @@ config BACKLIGHT_LOCOMO
165 160
166config BACKLIGHT_OMAP1 161config BACKLIGHT_OMAP1
167 tristate "OMAP1 PWL-based LCD Backlight" 162 tristate "OMAP1 PWL-based LCD Backlight"
168 depends on BACKLIGHT_CLASS_DEVICE && ARCH_OMAP1 163 depends on ARCH_OMAP1
169 default y 164 default y
170 help 165 help
171 This driver controls the LCD backlight level and power for 166 This driver controls the LCD backlight level and power for
@@ -174,7 +169,7 @@ config BACKLIGHT_OMAP1
174 169
175config BACKLIGHT_HP680 170config BACKLIGHT_HP680
176 tristate "HP Jornada 680 Backlight Driver" 171 tristate "HP Jornada 680 Backlight Driver"
177 depends on BACKLIGHT_CLASS_DEVICE && SH_HP6XX 172 depends on SH_HP6XX
178 default y 173 default y
179 help 174 help
180 If you have a HP Jornada 680, say y to enable the 175 If you have a HP Jornada 680, say y to enable the
@@ -182,7 +177,6 @@ config BACKLIGHT_HP680
182 177
183config BACKLIGHT_HP700 178config BACKLIGHT_HP700
184 tristate "HP Jornada 700 series Backlight Driver" 179 tristate "HP Jornada 700 series Backlight Driver"
185 depends on BACKLIGHT_CLASS_DEVICE
186 depends on SA1100_JORNADA720_SSP && !PREEMPT 180 depends on SA1100_JORNADA720_SSP && !PREEMPT
187 default y 181 default y
188 help 182 help
@@ -191,76 +185,70 @@ config BACKLIGHT_HP700
191 185
192config BACKLIGHT_PROGEAR 186config BACKLIGHT_PROGEAR
193 tristate "Frontpath ProGear Backlight Driver" 187 tristate "Frontpath ProGear Backlight Driver"
194 depends on BACKLIGHT_CLASS_DEVICE && PCI && X86 188 depends on PCI && X86
195 default n
196 help 189 help
197 If you have a Frontpath ProGear say Y to enable the 190 If you have a Frontpath ProGear say Y to enable the
198 backlight driver. 191 backlight driver.
199 192
200config BACKLIGHT_CARILLO_RANCH 193config BACKLIGHT_CARILLO_RANCH
201 tristate "Intel Carillo Ranch Backlight Driver" 194 tristate "Intel Carillo Ranch Backlight Driver"
202 depends on BACKLIGHT_CLASS_DEVICE && LCD_CLASS_DEVICE && PCI && X86 && FB_LE80578 195 depends on LCD_CLASS_DEVICE && PCI && X86 && FB_LE80578
203 default n
204 help 196 help
205 If you have a Intel LE80578 (Carillo Ranch) say Y to enable the 197 If you have a Intel LE80578 (Carillo Ranch) say Y to enable the
206 backlight driver. 198 backlight driver.
207 199
208config BACKLIGHT_PWM 200config BACKLIGHT_PWM
209 tristate "Generic PWM based Backlight Driver" 201 tristate "Generic PWM based Backlight Driver"
210 depends on BACKLIGHT_CLASS_DEVICE && HAVE_PWM 202 depends on HAVE_PWM
211 help 203 help
212 If you have a LCD backlight adjustable by PWM, say Y to enable 204 If you have a LCD backlight adjustable by PWM, say Y to enable
213 this driver. 205 this driver.
214 206
215config BACKLIGHT_DA903X 207config BACKLIGHT_DA903X
216 tristate "Backlight Driver for DA9030/DA9034 using WLED" 208 tristate "Backlight Driver for DA9030/DA9034 using WLED"
217 depends on BACKLIGHT_CLASS_DEVICE && PMIC_DA903X 209 depends on PMIC_DA903X
218 help 210 help
219 If you have a LCD backlight connected to the WLED output of DA9030 211 If you have a LCD backlight connected to the WLED output of DA9030
220 or DA9034 WLED output, say Y here to enable this driver. 212 or DA9034 WLED output, say Y here to enable this driver.
221 213
222config BACKLIGHT_MAX8925 214config BACKLIGHT_MAX8925
223 tristate "Backlight driver for MAX8925" 215 tristate "Backlight driver for MAX8925"
224 depends on BACKLIGHT_CLASS_DEVICE && MFD_MAX8925 216 depends on MFD_MAX8925
225 help 217 help
226 If you have a LCD backlight connected to the WLED output of MAX8925 218 If you have a LCD backlight connected to the WLED output of MAX8925
227 WLED output, say Y here to enable this driver. 219 WLED output, say Y here to enable this driver.
228 220
229config BACKLIGHT_MBP_NVIDIA 221config BACKLIGHT_MBP_NVIDIA
230 tristate "MacBook Pro Nvidia Backlight Driver" 222 tristate "MacBook Pro Nvidia Backlight Driver"
231 depends on BACKLIGHT_CLASS_DEVICE && X86 223 depends on X86
232 default n
233 help 224 help
234 If you have an Apple Macbook Pro with Nvidia graphics hardware say Y 225 If you have an Apple Macbook Pro with Nvidia graphics hardware say Y
235 to enable a driver for its backlight 226 to enable a driver for its backlight
236 227
237config BACKLIGHT_TOSA 228config BACKLIGHT_TOSA
238 tristate "Sharp SL-6000 Backlight Driver" 229 tristate "Sharp SL-6000 Backlight Driver"
239 depends on BACKLIGHT_CLASS_DEVICE && I2C 230 depends on I2C && MACH_TOSA && LCD_TOSA
240 depends on MACH_TOSA && LCD_TOSA
241 default n
242 help 231 help
243 If you have an Sharp SL-6000 Zaurus say Y to enable a driver 232 If you have an Sharp SL-6000 Zaurus say Y to enable a driver
244 for its backlight 233 for its backlight
245 234
246config BACKLIGHT_SAHARA 235config BACKLIGHT_SAHARA
247 tristate "Tabletkiosk Sahara Touch-iT Backlight Driver" 236 tristate "Tabletkiosk Sahara Touch-iT Backlight Driver"
248 depends on BACKLIGHT_CLASS_DEVICE && X86 237 depends on X86
249 default n
250 help 238 help
251 If you have a Tabletkiosk Sahara Touch-iT, say y to enable the 239 If you have a Tabletkiosk Sahara Touch-iT, say y to enable the
252 backlight driver. 240 backlight driver.
253 241
254config BACKLIGHT_WM831X 242config BACKLIGHT_WM831X
255 tristate "WM831x PMIC Backlight Driver" 243 tristate "WM831x PMIC Backlight Driver"
256 depends on BACKLIGHT_CLASS_DEVICE && MFD_WM831X 244 depends on MFD_WM831X
257 help 245 help
258 If you have a backlight driven by the ISINK and DCDC of a 246 If you have a backlight driven by the ISINK and DCDC of a
259 WM831x PMIC say y to enable the backlight driver for it. 247 WM831x PMIC say y to enable the backlight driver for it.
260 248
261config BACKLIGHT_ADX 249config BACKLIGHT_ADX
262 tristate "Avionic Design Xanthos Backlight Driver" 250 tristate "Avionic Design Xanthos Backlight Driver"
263 depends on BACKLIGHT_CLASS_DEVICE && ARCH_PXA_ADX 251 depends on ARCH_PXA_ADX
264 default y 252 default y
265 help 253 help
266 Say Y to enable the backlight driver on Avionic Design Xanthos-based 254 Say Y to enable the backlight driver on Avionic Design Xanthos-based
@@ -268,7 +256,7 @@ config BACKLIGHT_ADX
268 256
269config BACKLIGHT_ADP5520 257config BACKLIGHT_ADP5520
270 tristate "Backlight Driver for ADP5520/ADP5501 using WLED" 258 tristate "Backlight Driver for ADP5520/ADP5501 using WLED"
271 depends on BACKLIGHT_CLASS_DEVICE && PMIC_ADP5520 259 depends on PMIC_ADP5520
272 help 260 help
273 If you have a LCD backlight connected to the BST/BL_SNK output of 261 If you have a LCD backlight connected to the BST/BL_SNK output of
274 ADP5520 or ADP5501, say Y here to enable this driver. 262 ADP5520 or ADP5501, say Y here to enable this driver.
@@ -278,7 +266,10 @@ config BACKLIGHT_ADP5520
278 266
279config BACKLIGHT_88PM860X 267config BACKLIGHT_88PM860X
280 tristate "Backlight Driver for 88PM8606 using WLED" 268 tristate "Backlight Driver for 88PM8606 using WLED"
281 depends on BACKLIGHT_CLASS_DEVICE && MFD_88PM860X 269 depends on MFD_88PM860X
282 help 270 help
283 Say Y to enable the backlight driver for Marvell 88PM8606. 271 Say Y to enable the backlight driver for Marvell 88PM8606.
284 272
273endif # BACKLIGHT_CLASS_DEVICE
274
275endif # BACKLIGHT_LCD_SUPPORT