linux_dsm_epyc7002/arch/arm/mach-s3c24xx
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
bast-ide.c ARM: S3C24XX: Use common macro to define resources on bast-ide.c 2012-05-12 16:12:20 +09:00
bast-irq.c
clock-s3c244x.c
clock-s3c2412.c
clock-s3c2416.c spi: s3c64xx: move controller information into driver data 2012-07-13 15:23:46 +09:00
clock-s3c2440.c ARM: S3C24XX: Add .get_rate callback for "camif-upll" clock 2012-09-21 08:04:40 +09:00
clock-s3c2443.c spi: s3c64xx: move controller information into driver data 2012-07-13 15:23:46 +09:00
common-s3c2443.c spi: s3c64xx: move controller information into driver data 2012-07-13 15:23:46 +09:00
common-smdk.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
common.c ARM: S3C24XX: Remove duplicate header file inclusion 2012-06-20 09:19:17 +09:00
common.h ARM: S3C24XX: fix missing common.h in mach-s3c24xx/ 2012-04-02 06:43:23 +09:00
dma-s3c2410.c
dma-s3c2412.c
dma-s3c2440.c
dma-s3c2443.c ARM: S3C24XX: claim spi channels for hsspi in dma-s3c2443 2012-04-24 18:06:53 -07:00
h1940-bluetooth.c ARM: S3C24XX: Use module_platform_driver macro in h1940-bluetooth.c 2012-09-07 06:33:24 +09:00
irq-pm.c ARM: S3C24XX: move common power-management code to mach-s3c24xx 2012-05-12 16:22:18 +09:00
irq-s3c244x.c
irq-s3c2412.c
irq-s3c2416.c ARM: s3c24xx: fix multiple section mismatch warnings 2012-10-07 10:33:06 +02:00
irq-s3c2440.c
irq-s3c2443.c ARM: s3c24xx: fix multiple section mismatch warnings 2012-10-07 10:33:06 +02:00
Kconfig ARM: config: sort select statements alphanumerically 2012-10-13 17:11:28 +01:00
mach-amlm5900.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-anubis.c Merge branch 'multiplatform/platform-data' into next/multiplatform 2012-09-22 01:07:21 -07:00
mach-at2440evb.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-bast.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-gta02.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-h1940.c ARM: soc: multiplatform enablement 2012-10-01 19:11:38 -07:00
mach-jive.c Merge branch 'multiplatform/platform-data' into next/multiplatform 2012-09-22 01:07:21 -07:00
mach-mini2440.c Merge branch 'multiplatform/platform-data' into next/multiplatform 2012-09-22 01:07:21 -07:00
mach-n30.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-nexcoder.c Merge branch 'multiplatform/platform-data' into next/multiplatform 2012-09-22 01:07:21 -07:00
mach-osiris-dvs.c ARM: S3C24XX: Use module_platform_driver macro in mach-osiris-dvs.c 2012-09-07 06:33:28 +09:00
mach-osiris.c Merge branch 'multiplatform/platform-data' into next/multiplatform 2012-09-22 01:07:21 -07:00
mach-otom.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-qt2410.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-rx1950.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-rx3715.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-smdk2410.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-smdk2413.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-smdk2416.c fbdev updates for 3.7 2012-10-12 10:21:02 +09:00
mach-smdk2440.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-smdk2443.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-tct_hammer.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-vr1000.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
mach-vstms.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
Makefile arm-soc: soc specific changes, part 2 2012-05-26 13:05:55 -07:00
Makefile.boot
pm-h1940.S
pm-s3c2410.c ARM: S3C24XX: Convert the PM code to gpiolib API 2012-07-13 18:05:00 +09:00
pm-s3c2412.c ARM: S3C24XX: Remove unused GPIO definitions for port J 2012-07-13 18:05:29 +09:00
pm-s3c2416.c
pm.c ARM: S3C24XX: move common power-management code to mach-s3c24xx 2012-05-12 16:22:18 +09:00
s3c244x.c ARM: S3C24XX: Remove unused GPIO definitions for port J 2012-07-13 18:05:29 +09:00
s3c2410.c
s3c2412.c ARM: S3C24XX: Remove unused GPIO definitions for port J 2012-07-13 18:05:29 +09:00
s3c2416.c ARM: S3C24XX: add support for second irq set of S3C2416 2012-05-20 03:05:04 +09:00
s3c2440.c
s3c2442.c
s3c2443.c
setup-i2c.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
setup-sdhci-gpio.c
setup-spi.c ARM: SAMSUNG: Remove pdev pointer parameter from spi gpio setup functions 2012-07-13 15:23:46 +09:00
setup-ts.c ARM: S3C24XX: Convert the touchscreen setup code to common GPIO API 2012-07-13 18:05:05 +09:00
simtec-audio.c ARM: samsung: move platform_data definitions 2012-09-19 17:42:18 +02:00
simtec-nor.c ARM: S3C24XX: Use common macro to define resources on simtec-nor.c 2012-05-12 16:12:25 +09:00
simtec-pm.c
simtec-usb.c Merge branch 'late/fixes' into fixes 2012-10-07 07:22:32 -07:00
simtec.h
sleep-s3c2410.S
sleep-s3c2412.S
sleep.S ARM: S3C24XX: move common power-management code to mach-s3c24xx 2012-05-12 16:22:18 +09:00