linux/arch/arm/mach-exynos
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: soc: multiplatform enablement 2012-10-01 19:11:38 -07:00
clock-exynos4.c ARM: EXYNOS: Put PCM, Slimbus, Spdif clocks to off state 2012-09-21 11:06:00 +09:00
clock-exynos4.h
clock-exynos5.c Merge branch 'next/dt2' into HEAD 2012-10-01 14:37:01 -07:00
clock-exynos4210.c
clock-exynos4212.c
common.c ARM: EXYNOS: skip wakeup interrupt setup if pinctrl driver is used 2012-09-07 06:07:40 +09:00
common.h ARM: SoC: convert Exynos4 to SMP operations 2012-09-14 11:14:50 +02:00
cpuidle.c
dev-ahci.c
dev-audio.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
dev-drm.c
dev-dwmci.c
dev-ohci.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
dev-sysmmu.c
dev-uart.c
dma.c ARM: EXYNOS: Set the capability of pdm0 and pdm1 as DMA_PRIVATE 2012-09-14 08:42:08 +05:30
headsmp.S
hotplug.c ARM: consolidate pen_release instead of having per platform definitions 2012-09-14 11:15:01 +02:00
Kconfig ARM: config: sort select statements alphanumerically 2012-10-13 17:11:28 +01:00
mach-armlex4210.c ARM: SoC: convert Exynos4 to SMP operations 2012-09-14 11:14:50 +02:00
mach-exynos4-dt.c ARM: EXYNOS: Add OF compatibility lookups for EXYNOS4 i2c adapters 2012-09-21 10:47:24 +09:00
mach-exynos5-dt.c ARM: soc: multiplatform enablement 2012-10-01 19:11:38 -07:00
mach-nuri.c Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-10-12 12:39:17 +09:00
mach-origen.c Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-10-12 12:39:17 +09:00
mach-smdk4x12.c fbdev updates for 3.7 2012-10-12 10:21:02 +09:00
mach-smdkv310.c fbdev updates for 3.7 2012-10-12 10:21:02 +09:00
mach-universal_c210.c Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-10-12 12:39:17 +09:00
Makefile
Makefile.boot ARM: dts: Add basic dts file for Samsung Trats board 2012-09-21 10:50:27 +09:00
mct.c
platsmp.c Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm 2012-10-07 21:20:57 +09:00
pm_domains.c ARM: exynos: exynos_pm_add_dev_to_genpd may be unused 2012-08-10 12:27:34 +02:00
pm.c
pmu.c
setup-fimc.c
setup-fimd0.c include/video: move fimd register headers from platform to include/video 2012-08-08 09:44:49 +09:00
setup-i2c0.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
setup-i2c1.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
setup-i2c2.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
setup-i2c3.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
setup-i2c4.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
setup-i2c5.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
setup-i2c6.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
setup-i2c7.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
setup-keypad.c
setup-sdhci-gpio.c
setup-spi.c
setup-usb-phy.c