diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-10-06 12:12:25 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-10-13 12:11:28 -0400 |
commit | b1b3f49ce4606452279b58b17f2bbe2ba00304b7 (patch) | |
tree | c9cfdc72dd580a9c3ace71846af45b4f65268f46 /arch/arm/mach-s3c64xx/Kconfig | |
parent | 4f1cd91497774488ed16119ec3f54b3daf1561de (diff) |
ARM: config: sort select statements alphanumerically
As suggested by Andrew Morton:
This is a pet peeve of mine. Any time there's a long list of items
(header file inclusions, kconfig entries, array initalisers, etc) and
someone wants to add a new item, they *always* go and stick it at the
end of the list.
Guys, don't do this. Either put the new item into a randomly-chosen
position or, probably better, alphanumerically sort the list.
lets sort all our select statements alphanumerically. This commit was
created by the following perl:
while (<>) {
while (/\\\s*$/) {
$_ .= <>;
}
undef %selects if /^\s*config\s+/;
if (/^\s+select\s+(\w+).*/) {
if (defined($selects{$1})) {
if ($selects{$1} eq $_) {
print STDERR "Warning: removing duplicated $1 entry\n";
} else {
print STDERR "Error: $1 differently selected\n".
"\tOld: $selects{$1}\n".
"\tNew: $_\n";
exit 1;
}
}
$selects{$1} = $_;
next;
}
if (%selects and (/^\s*$/ or /^\s+help/ or /^\s+---help---/ or
/^endif/ or /^endchoice/)) {
foreach $k (sort (keys %selects)) {
print "$selects{$k}";
}
undef %selects;
}
print;
}
if (%selects) {
foreach $k (sort (keys %selects)) {
print "$selects{$k}";
}
}
It found two duplicates:
Warning: removing duplicated S5P_SETUP_MIPIPHY entry
Warning: removing duplicated HARDIRQS_SW_RESEND entry
and they are identical duplicates, hence the shrinkage in the diffstat
of two lines.
We have four testers reporting success of this change (Tony, Stephen,
Linus and Sekhar.)
Acked-by: Jason Cooper <jason@lakedaemon.net>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c64xx/Kconfig')
-rw-r--r-- | arch/arm/mach-s3c64xx/Kconfig | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/arch/arm/mach-s3c64xx/Kconfig b/arch/arm/mach-s3c64xx/Kconfig index 06ca1cd4cae2..63e7ae3ee9e6 100644 --- a/arch/arm/mach-s3c64xx/Kconfig +++ b/arch/arm/mach-s3c64xx/Kconfig | |||
@@ -7,9 +7,9 @@ | |||
7 | config PLAT_S3C64XX | 7 | config PLAT_S3C64XX |
8 | bool | 8 | bool |
9 | depends on ARCH_S3C64XX | 9 | depends on ARCH_S3C64XX |
10 | select SAMSUNG_WAKEMASK | ||
11 | select PM_GENERIC_DOMAINS | ||
12 | default y | 10 | default y |
11 | select PM_GENERIC_DOMAINS | ||
12 | select SAMSUNG_WAKEMASK | ||
13 | help | 13 | help |
14 | Base platform code for any Samsung S3C64XX device | 14 | Base platform code for any Samsung S3C64XX device |
15 | 15 | ||
@@ -31,8 +31,8 @@ config S3C64XX_DMA | |||
31 | select S3C_DMA | 31 | select S3C_DMA |
32 | 32 | ||
33 | config S3C64XX_SETUP_SDHCI | 33 | config S3C64XX_SETUP_SDHCI |
34 | select S3C64XX_SETUP_SDHCI_GPIO | ||
35 | bool | 34 | bool |
35 | select S3C64XX_SETUP_SDHCI_GPIO | ||
36 | help | 36 | help |
37 | Internal configuration for default SDHCI setup for S3C6400 and | 37 | Internal configuration for default SDHCI setup for S3C6400 and |
38 | S3C6410 SoCs. | 38 | S3C6410 SoCs. |
@@ -93,9 +93,9 @@ config S3C64XX_SETUP_USB_PHY | |||
93 | config MACH_SMDK6400 | 93 | config MACH_SMDK6400 |
94 | bool "SMDK6400" | 94 | bool "SMDK6400" |
95 | select CPU_S3C6400 | 95 | select CPU_S3C6400 |
96 | select S3C64XX_SETUP_SDHCI | ||
96 | select S3C_DEV_HSMMC | 97 | select S3C_DEV_HSMMC |
97 | select S3C_DEV_NAND | 98 | select S3C_DEV_NAND |
98 | select S3C64XX_SETUP_SDHCI | ||
99 | help | 99 | help |
100 | Machine support for the Samsung SMDK6400 | 100 | Machine support for the Samsung SMDK6400 |
101 | 101 | ||
@@ -104,21 +104,21 @@ config MACH_SMDK6400 | |||
104 | config MACH_ANW6410 | 104 | config MACH_ANW6410 |
105 | bool "A&W6410" | 105 | bool "A&W6410" |
106 | select CPU_S3C6410 | 106 | select CPU_S3C6410 |
107 | select S3C_DEV_FB | ||
108 | select S3C64XX_SETUP_FB_24BPP | 107 | select S3C64XX_SETUP_FB_24BPP |
108 | select S3C_DEV_FB | ||
109 | help | 109 | help |
110 | Machine support for the A&W6410 | 110 | Machine support for the A&W6410 |
111 | 111 | ||
112 | config MACH_MINI6410 | 112 | config MACH_MINI6410 |
113 | bool "MINI6410" | 113 | bool "MINI6410" |
114 | select CPU_S3C6410 | 114 | select CPU_S3C6410 |
115 | select S3C64XX_SETUP_FB_24BPP | ||
116 | select S3C64XX_SETUP_SDHCI | ||
117 | select S3C_DEV_FB | ||
115 | select S3C_DEV_HSMMC | 118 | select S3C_DEV_HSMMC |
116 | select S3C_DEV_HSMMC1 | 119 | select S3C_DEV_HSMMC1 |
117 | select S3C64XX_SETUP_SDHCI | ||
118 | select S3C_DEV_USB_HOST | ||
119 | select S3C_DEV_NAND | 120 | select S3C_DEV_NAND |
120 | select S3C_DEV_FB | 121 | select S3C_DEV_USB_HOST |
121 | select S3C64XX_SETUP_FB_24BPP | ||
122 | select SAMSUNG_DEV_ADC | 122 | select SAMSUNG_DEV_ADC |
123 | select SAMSUNG_DEV_TS | 123 | select SAMSUNG_DEV_TS |
124 | help | 124 | help |
@@ -127,42 +127,42 @@ config MACH_MINI6410 | |||
127 | config MACH_REAL6410 | 127 | config MACH_REAL6410 |
128 | bool "REAL6410" | 128 | bool "REAL6410" |
129 | select CPU_S3C6410 | 129 | select CPU_S3C6410 |
130 | select S3C_DEV_HSMMC | 130 | select S3C64XX_SETUP_FB_24BPP |
131 | select S3C_DEV_HSMMC1 | ||
132 | select S3C64XX_SETUP_SDHCI | 131 | select S3C64XX_SETUP_SDHCI |
133 | select S3C_DEV_FB | 132 | select S3C_DEV_FB |
134 | select S3C64XX_SETUP_FB_24BPP | 133 | select S3C_DEV_HSMMC |
134 | select S3C_DEV_HSMMC1 | ||
135 | select S3C_DEV_NAND | 135 | select S3C_DEV_NAND |
136 | select S3C_DEV_USB_HOST | ||
136 | select SAMSUNG_DEV_ADC | 137 | select SAMSUNG_DEV_ADC |
137 | select SAMSUNG_DEV_TS | 138 | select SAMSUNG_DEV_TS |
138 | select S3C_DEV_USB_HOST | ||
139 | help | 139 | help |
140 | Machine support for the CoreWind REAL6410 | 140 | Machine support for the CoreWind REAL6410 |
141 | 141 | ||
142 | config MACH_SMDK6410 | 142 | config MACH_SMDK6410 |
143 | bool "SMDK6410" | 143 | bool "SMDK6410" |
144 | select CPU_S3C6410 | 144 | select CPU_S3C6410 |
145 | select SAMSUNG_DEV_ADC | 145 | select HAVE_S3C2410_WATCHDOG if WATCHDOG |
146 | select S3C64XX_SETUP_FB_24BPP | ||
147 | select S3C64XX_SETUP_I2C1 | ||
148 | select S3C64XX_SETUP_IDE | ||
149 | select S3C64XX_SETUP_KEYPAD | ||
150 | select S3C64XX_SETUP_SDHCI | ||
151 | select S3C64XX_SETUP_USB_PHY | ||
152 | select S3C_DEV_FB | ||
146 | select S3C_DEV_HSMMC | 153 | select S3C_DEV_HSMMC |
147 | select S3C_DEV_HSMMC1 | 154 | select S3C_DEV_HSMMC1 |
148 | select S3C_DEV_I2C1 | 155 | select S3C_DEV_I2C1 |
149 | select SAMSUNG_DEV_IDE | ||
150 | select S3C_DEV_FB | ||
151 | select S3C_DEV_RTC | 156 | select S3C_DEV_RTC |
152 | select SAMSUNG_DEV_TS | ||
153 | select S3C_DEV_USB_HOST | 157 | select S3C_DEV_USB_HOST |
154 | select S3C_DEV_USB_HSOTG | 158 | select S3C_DEV_USB_HSOTG |
155 | select S3C_DEV_WDT | 159 | select S3C_DEV_WDT |
160 | select SAMSUNG_DEV_ADC | ||
156 | select SAMSUNG_DEV_BACKLIGHT | 161 | select SAMSUNG_DEV_BACKLIGHT |
162 | select SAMSUNG_DEV_IDE | ||
157 | select SAMSUNG_DEV_KEYPAD | 163 | select SAMSUNG_DEV_KEYPAD |
158 | select SAMSUNG_DEV_PWM | 164 | select SAMSUNG_DEV_PWM |
159 | select HAVE_S3C2410_WATCHDOG if WATCHDOG | 165 | select SAMSUNG_DEV_TS |
160 | select S3C64XX_SETUP_SDHCI | ||
161 | select S3C64XX_SETUP_I2C1 | ||
162 | select S3C64XX_SETUP_IDE | ||
163 | select S3C64XX_SETUP_FB_24BPP | ||
164 | select S3C64XX_SETUP_KEYPAD | ||
165 | select S3C64XX_SETUP_USB_PHY | ||
166 | help | 166 | help |
167 | Machine support for the Samsung SMDK6410 | 167 | Machine support for the Samsung SMDK6410 |
168 | 168 | ||
@@ -198,13 +198,13 @@ endchoice | |||
198 | config SMDK6410_WM1190_EV1 | 198 | config SMDK6410_WM1190_EV1 |
199 | bool "Support Wolfson Microelectronics 1190-EV1 PMIC card" | 199 | bool "Support Wolfson Microelectronics 1190-EV1 PMIC card" |
200 | depends on MACH_SMDK6410 | 200 | depends on MACH_SMDK6410 |
201 | select REGULATOR | ||
202 | select REGULATOR_WM8350 | ||
203 | select SAMSUNG_GPIO_EXTRA64 | ||
204 | select MFD_WM8350_I2C | ||
205 | select MFD_WM8350_CONFIG_MODE_0 | 201 | select MFD_WM8350_CONFIG_MODE_0 |
206 | select MFD_WM8350_CONFIG_MODE_3 | 202 | select MFD_WM8350_CONFIG_MODE_3 |
203 | select MFD_WM8350_I2C | ||
207 | select MFD_WM8352_CONFIG_MODE_0 | 204 | select MFD_WM8352_CONFIG_MODE_0 |
205 | select REGULATOR | ||
206 | select REGULATOR_WM8350 | ||
207 | select SAMSUNG_GPIO_EXTRA64 | ||
208 | help | 208 | help |
209 | The Wolfson Microelectronics 1190-EV1 is a WM835x based PMIC | 209 | The Wolfson Microelectronics 1190-EV1 is a WM835x based PMIC |
210 | and audio daughtercard for the Samsung SMDK6410 reference | 210 | and audio daughtercard for the Samsung SMDK6410 reference |
@@ -216,11 +216,11 @@ config SMDK6410_WM1190_EV1 | |||
216 | config SMDK6410_WM1192_EV1 | 216 | config SMDK6410_WM1192_EV1 |
217 | bool "Support Wolfson Microelectronics 1192-EV1 PMIC card" | 217 | bool "Support Wolfson Microelectronics 1192-EV1 PMIC card" |
218 | depends on MACH_SMDK6410 | 218 | depends on MACH_SMDK6410 |
219 | select MFD_WM831X | ||
220 | select MFD_WM831X_I2C | ||
219 | select REGULATOR | 221 | select REGULATOR |
220 | select REGULATOR_WM831X | 222 | select REGULATOR_WM831X |
221 | select SAMSUNG_GPIO_EXTRA64 | 223 | select SAMSUNG_GPIO_EXTRA64 |
222 | select MFD_WM831X | ||
223 | select MFD_WM831X_I2C | ||
224 | help | 224 | help |
225 | The Wolfson Microelectronics 1192-EV1 is a WM831x based PMIC | 225 | The Wolfson Microelectronics 1192-EV1 is a WM831x based PMIC |
226 | daughtercard for the Samsung SMDK6410 reference platform. | 226 | daughtercard for the Samsung SMDK6410 reference platform. |
@@ -232,19 +232,19 @@ config SMDK6410_WM1192_EV1 | |||
232 | config MACH_NCP | 232 | config MACH_NCP |
233 | bool "NCP" | 233 | bool "NCP" |
234 | select CPU_S3C6410 | 234 | select CPU_S3C6410 |
235 | select S3C_DEV_I2C1 | ||
236 | select S3C_DEV_HSMMC1 | ||
237 | select S3C64XX_SETUP_I2C1 | 235 | select S3C64XX_SETUP_I2C1 |
236 | select S3C_DEV_HSMMC1 | ||
237 | select S3C_DEV_I2C1 | ||
238 | help | 238 | help |
239 | Machine support for the Samsung NCP | 239 | Machine support for the Samsung NCP |
240 | 240 | ||
241 | config MACH_HMT | 241 | config MACH_HMT |
242 | bool "Airgoo HMT" | 242 | bool "Airgoo HMT" |
243 | select CPU_S3C6410 | 243 | select CPU_S3C6410 |
244 | select S3C64XX_SETUP_FB_24BPP | ||
244 | select S3C_DEV_FB | 245 | select S3C_DEV_FB |
245 | select S3C_DEV_NAND | 246 | select S3C_DEV_NAND |
246 | select S3C_DEV_USB_HOST | 247 | select S3C_DEV_USB_HOST |
247 | select S3C64XX_SETUP_FB_24BPP | ||
248 | select SAMSUNG_DEV_PWM | 248 | select SAMSUNG_DEV_PWM |
249 | help | 249 | help |
250 | Machine support for the Airgoo HMT | 250 | Machine support for the Airgoo HMT |
@@ -252,17 +252,17 @@ config MACH_HMT | |||
252 | config MACH_SMARTQ | 252 | config MACH_SMARTQ |
253 | bool | 253 | bool |
254 | select CPU_S3C6410 | 254 | select CPU_S3C6410 |
255 | select S3C64XX_SETUP_FB_24BPP | ||
256 | select S3C64XX_SETUP_SDHCI | ||
257 | select S3C64XX_SETUP_USB_PHY | ||
258 | select S3C_DEV_FB | ||
255 | select S3C_DEV_HSMMC | 259 | select S3C_DEV_HSMMC |
256 | select S3C_DEV_HSMMC1 | 260 | select S3C_DEV_HSMMC1 |
257 | select S3C_DEV_HSMMC2 | 261 | select S3C_DEV_HSMMC2 |
258 | select S3C_DEV_FB | ||
259 | select S3C_DEV_HWMON | 262 | select S3C_DEV_HWMON |
260 | select S3C_DEV_RTC | 263 | select S3C_DEV_RTC |
261 | select S3C_DEV_USB_HSOTG | ||
262 | select S3C_DEV_USB_HOST | 264 | select S3C_DEV_USB_HOST |
263 | select S3C64XX_SETUP_SDHCI | 265 | select S3C_DEV_USB_HSOTG |
264 | select S3C64XX_SETUP_FB_24BPP | ||
265 | select S3C64XX_SETUP_USB_PHY | ||
266 | select SAMSUNG_DEV_ADC | 266 | select SAMSUNG_DEV_ADC |
267 | select SAMSUNG_DEV_PWM | 267 | select SAMSUNG_DEV_PWM |
268 | select SAMSUNG_DEV_TS | 268 | select SAMSUNG_DEV_TS |
@@ -284,26 +284,26 @@ config MACH_SMARTQ7 | |||
284 | config MACH_WLF_CRAGG_6410 | 284 | config MACH_WLF_CRAGG_6410 |
285 | bool "Wolfson Cragganmore 6410" | 285 | bool "Wolfson Cragganmore 6410" |
286 | select CPU_S3C6410 | 286 | select CPU_S3C6410 |
287 | select S3C64XX_SETUP_SDHCI | 287 | select I2C |
288 | select LEDS_GPIO_REGISTER | ||
289 | select S3C64XX_DEV_SPI0 | ||
290 | select S3C64XX_SETUP_FB_24BPP | ||
288 | select S3C64XX_SETUP_I2C1 | 291 | select S3C64XX_SETUP_I2C1 |
289 | select S3C64XX_SETUP_IDE | 292 | select S3C64XX_SETUP_IDE |
290 | select S3C64XX_SETUP_FB_24BPP | ||
291 | select S3C64XX_SETUP_KEYPAD | 293 | select S3C64XX_SETUP_KEYPAD |
294 | select S3C64XX_SETUP_SDHCI | ||
292 | select S3C64XX_SETUP_SPI | 295 | select S3C64XX_SETUP_SPI |
293 | select S3C64XX_SETUP_USB_PHY | 296 | select S3C64XX_SETUP_USB_PHY |
294 | select SAMSUNG_DEV_ADC | ||
295 | select SAMSUNG_DEV_KEYPAD | ||
296 | select S3C_DEV_USB_HOST | ||
297 | select S3C_DEV_USB_HSOTG | ||
298 | select S3C_DEV_HSMMC | 297 | select S3C_DEV_HSMMC |
299 | select S3C_DEV_HSMMC1 | 298 | select S3C_DEV_HSMMC1 |
300 | select S3C_DEV_HSMMC2 | 299 | select S3C_DEV_HSMMC2 |
301 | select S3C_DEV_I2C1 | 300 | select S3C_DEV_I2C1 |
302 | select S3C_DEV_WDT | ||
303 | select S3C_DEV_RTC | 301 | select S3C_DEV_RTC |
304 | select S3C64XX_DEV_SPI0 | 302 | select S3C_DEV_USB_HOST |
303 | select S3C_DEV_USB_HSOTG | ||
304 | select S3C_DEV_WDT | ||
305 | select SAMSUNG_DEV_ADC | ||
306 | select SAMSUNG_DEV_KEYPAD | ||
305 | select SAMSUNG_GPIO_EXTRA128 | 307 | select SAMSUNG_GPIO_EXTRA128 |
306 | select I2C | ||
307 | select LEDS_GPIO_REGISTER | ||
308 | help | 308 | help |
309 | Machine support for the Wolfson Cragganmore S3C6410 variant. | 309 | Machine support for the Wolfson Cragganmore S3C6410 variant. |