tmp_suning_uos_patched/arch/arm/mach-pxa
Russell King b1b3f49ce4 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>
2012-10-13 17:11:28 +01:00
..
include/mach Merge branch 'multiplatform/platform-data' into next/multiplatform 2012-09-22 01:07:21 -07:00
am200epd.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
am300epd.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
balloon3.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
capc7117.c
clock-pxa2xx.c
clock-pxa3xx.c ARM: pxa: support CKENC in clk_enable 2012-08-16 16:15:44 +08:00
clock.c
clock.h
cm-x2xx-pci.c
cm-x2xx-pci.h
cm-x2xx.c Merge branch 'late/fixes' into fixes 2012-10-07 07:22:32 -07:00
cm-x255.c
cm-x270.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
cm-x300.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
colibri-evalboard.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
colibri-pxa3xx.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
colibri-pxa270-income.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
colibri-pxa270.c
colibri-pxa300.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
colibri-pxa320.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
corgi_pm.c
corgi.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
cpufreq-pxa2xx.c
cpufreq-pxa3xx.c
csb701.c
csb726.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
devices.c Merge branch 'multiplatform/platform-data' into next/multiplatform 2012-09-22 01:07:21 -07:00
devices.h
em-x270.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
eseries.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
ezx.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
generic.c
generic.h
gumstix.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
h5000.c
himalaya.c
hx4700.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
icontrol.c
idp.c ARM: soc: multiplatform enablement 2012-10-01 19:11:38 -07:00
irq.c
Kconfig ARM: config: sort select statements alphanumerically 2012-10-13 17:11:28 +01:00
littleton.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
lpd270.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
lubbock.c ARM: soc: multiplatform enablement 2012-10-01 19:11:38 -07:00
magician.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
mainstone.c ARM: soc: multiplatform enablement 2012-10-01 19:11:38 -07:00
Makefile ARM: soc: driver specific changes 2012-10-01 18:46:13 -07:00
Makefile.boot
mfp-pxa2xx.c
mfp-pxa3xx.c
mioa701_bootresume.S
mioa701.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
mp900.c
mxm8x10.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
palm27x.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
palmld.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
palmt5.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
palmtc.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
palmte2.c Merge branch 'late/fixes' into fixes 2012-10-07 07:22:32 -07:00
palmtreo.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
palmtx.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
palmz72.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
pcm027.c
pcm990-baseboard.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
pm.c
poodle.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
pxa-dt.c ARM: pxa3xx: add generic DT machine code 2012-08-16 16:15:12 +08:00
pxa2xx.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
pxa3xx-ulpi.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
pxa3xx.c Merge branch 'multiplatform/platform-data' into next/multiplatform 2012-09-22 01:07:21 -07:00
pxa25x.c
pxa27x.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
pxa95x.c
pxa300.c
pxa320.c
pxa930.c
raumfeld.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
reset.c
saar.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
saarb.c
sharpsl_pm.c Merge branch 'late/fixes' into fixes 2012-10-07 07:22:32 -07:00
sleep.S
smemc.c
spitz_pm.c
spitz.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
standby.S
stargate2.c ARM: soc: multiplatform enablement 2012-10-01 19:11:38 -07:00
tavorevb.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
tavorevb3.c
time.c
tosa-bt.c
tosa.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
trizeps4.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
viper.c Merge branch 'late/fixes' into fixes 2012-10-07 07:22:32 -07:00
vpac270.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
xcep.c
z2.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
zeus.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00
zylonite_pxa300.c
zylonite_pxa320.c
zylonite.c ARM: pxa: move platform_data definitions 2012-09-14 11:18:10 +02:00