diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2010-03-30 14:17:35 -0400 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-05-26 08:08:31 -0400 |
commit | 8fdd5767ebe5806f02e1c8d9ac67ac4da8836f53 (patch) | |
tree | 8c83ac0cf39260cf11dddc67675122a6c6ab51e0 /drivers/video | |
parent | 3e4a326df654d748d73600068fbdbdfed0b0db43 (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')
-rw-r--r-- | drivers/video/backlight/Kconfig | 79 |
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 | ||
11 | if BACKLIGHT_LCD_SUPPORT | ||
12 | |||
11 | # | 13 | # |
12 | # LCD | 14 | # LCD |
13 | # | 15 | # |
14 | config LCD_CLASS_DEVICE | 16 | config 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 | ||
28 | if LCD_CLASS_DEVICE | ||
29 | |||
27 | config LCD_CORGI | 30 | config 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 | ||
34 | config LCD_L4F00242T03 | 37 | config 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 | ||
41 | config LCD_LMS283GF05 | 44 | config 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 | ||
48 | config LCD_LTV350QV | 51 | config 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 | ||
60 | config LCD_ILI9320 | 62 | config 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 | ||
68 | config LCD_TDO24M | 68 | config 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 | ||
76 | config LCD_VGG2432A4 | 75 | config 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 | ||
85 | config LCD_PLATFORM | 83 | config 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 | ||
92 | config LCD_TOSA | 89 | config 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 | ||
101 | config LCD_HP700 | 96 | config 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 | ||
104 | endif # LCD_CLASS_DEVICE | ||
105 | |||
110 | # | 106 | # |
111 | # Backlight | 107 | # Backlight |
112 | # | 108 | # |
113 | config BACKLIGHT_CLASS_DEVICE | 109 | config 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 | ||
119 | if BACKLIGHT_CLASS_DEVICE | ||
120 | |||
124 | config BACKLIGHT_ATMEL_LCDC | 121 | config 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 | ||
137 | config BACKLIGHT_ATMEL_PWM | 134 | config 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 | ||
149 | config BACKLIGHT_GENERIC | 145 | config 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 | ||
158 | config BACKLIGHT_LOCOMO | 153 | config 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 | ||
166 | config BACKLIGHT_OMAP1 | 161 | config 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 | ||
175 | config BACKLIGHT_HP680 | 170 | config 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 | ||
183 | config BACKLIGHT_HP700 | 178 | config 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 | ||
192 | config BACKLIGHT_PROGEAR | 186 | config 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 | ||
200 | config BACKLIGHT_CARILLO_RANCH | 193 | config 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 | ||
208 | config BACKLIGHT_PWM | 200 | config 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 | ||
215 | config BACKLIGHT_DA903X | 207 | config 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 | ||
222 | config BACKLIGHT_MAX8925 | 214 | config 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 | ||
229 | config BACKLIGHT_MBP_NVIDIA | 221 | config 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 | ||
237 | config BACKLIGHT_TOSA | 228 | config 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 | ||
246 | config BACKLIGHT_SAHARA | 235 | config 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 | ||
254 | config BACKLIGHT_WM831X | 242 | config 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 | ||
261 | config BACKLIGHT_ADX | 249 | config 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 | ||
269 | config BACKLIGHT_ADP5520 | 257 | config 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 | ||
279 | config BACKLIGHT_88PM860X | 267 | config 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 | ||
273 | endif # BACKLIGHT_CLASS_DEVICE | ||
274 | |||
275 | endif # BACKLIGHT_LCD_SUPPORT | ||