kernel-fxtec-pro1x/arch/arm/mach-shmobile
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 ARM: shmobile: mark shmobile_init_late as __init 2012-10-09 17:27:01 +02:00
board-ag5evm.c Merge branch 'multiplatform/smp_ops' into next/multiplatform 2012-09-22 00:16:04 -07:00
board-ap4evb.c Power management updates for 3.7-rc1 2012-10-02 18:32:35 -07:00
board-armadillo800eva.c Power management updates for 3.7-rc1 2012-10-02 18:32:35 -07:00
board-bonito.c ARM: shmobile: use __iomem pointers for MMIO 2012-09-18 10:15:11 +02:00
board-g3evm.c ARM: shmobile: use __iomem pointers for MMIO 2012-09-18 10:15:11 +02:00
board-g4evm.c ARM: soc: multiplatform enablement 2012-10-01 19:11:38 -07:00
board-kota2.c ARM: SoC: convert shmobile SMP to SMP operations 2012-09-14 11:14:58 +02:00
board-kzm9d.c ARM: SoC: convert shmobile SMP to SMP operations 2012-09-14 11:14:58 +02:00
board-kzm9g.c So this is the LW GPIO patch stack for v3.7: 2012-10-02 16:05:10 -07:00
board-mackerel.c Power management updates for 3.7-rc1 2012-10-02 18:32:35 -07:00
board-marzen.c ARM: soc: multiplatform enablement 2012-10-01 19:11:38 -07:00
clock-emev2.c mach-shmobile: Emma Mobile EV2 DT support V3 2012-05-18 00:14:03 +02:00
clock-r8a7740.c ARM: shmobile: use __iomem pointers for MMIO 2012-09-18 10:15:11 +02:00
clock-r8a7779.c r8a7779: add SDHI clock support 2012-09-06 10:49:18 +09:00
clock-sh73a0.c ARM: shmobile: use __iomem pointers for MMIO 2012-09-18 10:15:11 +02:00
clock-sh7367.c ARM: shmobile: use __iomem pointers for MMIO 2012-09-18 10:15:11 +02:00
clock-sh7372.c ARM: shmobile: use __iomem pointers for MMIO 2012-09-18 10:15:11 +02:00
clock-sh7377.c ARM: shmobile: use __iomem pointers for MMIO 2012-09-18 10:15:11 +02:00
clock.c
console.c
cpuidle.c ARM: shmobile: Make sh7372 cpuidle handling more straightforward 2012-09-04 01:45:01 +02:00
entry-intc.S
headsmp.S ARM / mach-shmobile: Invalidate caches when booting secondary cores 2012-05-12 22:13:52 +02:00
hotplug.c ARM: SoC: convert shmobile SMP to SMP operations 2012-09-14 11:14:58 +02:00
intc-r8a7740.c ARM: shmobile: r8a7740: add HDMI interrupt support 2012-06-20 12:27:47 +02:00
intc-r8a7779.c ARM: shmobile: use __iomem pointers for MMIO 2012-09-18 10:15:11 +02:00
intc-sh73a0.c Merge branch 'cleanup/__iomem' into next/cleanup 2012-09-22 10:24:29 -07:00
intc-sh7367.c
intc-sh7372.c ARM: shmobile: use __iomem pointers for MMIO 2012-09-18 10:15:11 +02:00
intc-sh7377.c
Kconfig ARM: config: sort select statements alphanumerically 2012-10-13 17:11:28 +01:00
Makefile ARM: shmobile: Move definition of shmobile_init_late() to header 2012-09-04 01:45:01 +02:00
Makefile.boot ARM: dtb: move all dtb targets to common Makefile 2012-09-20 22:58:17 -07:00
pfc-r8a7740.c ARM: shmobile: move custom gpio functions to sh-gpio.h 2012-09-14 09:21:58 -05:00
pfc-r8a7779.c ARM: shmobile: move custom gpio functions to sh-gpio.h 2012-09-14 09:21:58 -05:00
pfc-sh73a0.c ARM: shmobile: move custom gpio functions to sh-gpio.h 2012-09-14 09:21:58 -05:00
pfc-sh7367.c ARM: shmobile: move custom gpio functions to sh-gpio.h 2012-09-14 09:21:58 -05:00
pfc-sh7372.c ARM: shmobile: move custom gpio functions to sh-gpio.h 2012-09-14 09:21:58 -05:00
pfc-sh7377.c ARM: shmobile: move custom gpio functions to sh-gpio.h 2012-09-14 09:21:58 -05:00
platsmp.c ARM: SoC: convert shmobile SMP to SMP operations 2012-09-14 11:14:58 +02:00
pm-r8a7740.c ARM: shmobile: Move r8a7740's PM domain objects to a table 2012-09-04 01:44:57 +02:00
pm-r8a7779.c ARM: shmobile: Move r8a7779's PM domain objects to a table 2012-09-04 01:44:58 +02:00
pm-rmobile.c Power management updates for 3.7-rc1 2012-10-02 18:32:35 -07:00
pm-sh7372.c Power management updates for 3.7-rc1 2012-10-02 18:32:35 -07:00
setup-emev2.c Merge branch 'multiplatform/smp_ops' into next/multiplatform 2012-09-22 00:16:04 -07:00
setup-r8a7740.c ARM: shmobile: Move r8a7740's PM domain objects to a table 2012-09-04 01:44:57 +02:00
setup-r8a7779.c ARM: shmobile: Move r8a7779's PM domain objects to a table 2012-09-04 01:44:58 +02:00
setup-sh73a0.c ARM: soc: soc-specific updates 2012-10-01 18:24:44 -07:00
setup-sh7367.c ARM: shmobile: use __iomem pointers for MMIO 2012-09-18 10:15:11 +02:00
setup-sh7372.c ARM: shmobile: Rework adding devices to PM domains on Mackerel 2012-09-04 01:45:00 +02:00
setup-sh7377.c ARM: shmobile: use __iomem pointers for MMIO 2012-09-18 10:15:11 +02:00
sh-gpio.h ARM: soc: multiplatform enablement 2012-10-01 19:11:38 -07:00
sleep-sh7372.S
smp-emev2.c Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm 2012-10-07 21:20:57 +09:00
smp-r8a7779.c ARM: SoC: convert shmobile SMP to SMP operations 2012-09-14 11:14:58 +02:00
smp-sh73a0.c ARM: SoC: convert shmobile SMP to SMP operations 2012-09-14 11:14:58 +02:00
suspend.c ARM: shmobile: use machine specific hook for late init 2012-05-08 20:36:35 +08:00
timer.c ARM / mach-shmobile: Use preset_lpj with calibrate_delay() 2012-05-12 22:21:36 +02:00