kernel-fxtec-pro1x/arch/arm/plat-mxc/devices
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
..
Kconfig ARM: config: sort select statements alphanumerically 2012-10-13 17:11:28 +01:00
Makefile [media] i.MX: coda: Add platform support for coda in i.MX27 2012-08-06 08:32:23 -03:00
platform-ahci-imx.c ARM: mxc: ahci: add clk_prepare/clk_unprepare 2012-02-01 14:27:59 +01:00
platform-fec.c net/fec: gasket needs to be enabled for some i.mx 2011-07-27 09:30:50 +08:00
platform-flexcan.c
platform-fsl-usb2-udc.c ARM: mx5: dynamically allocate fsl-usb2-udc devices 2011-08-01 11:16:55 +02:00
platform-gpio-mxc.c gpio/mxc: get rid of the uses of cpu_is_mx() 2011-07-08 12:38:12 -06:00
platform-gpio_keys.c
platform-imx-dma.c dmaengine: imx-sdma: use platform_device_id to identify sdma version 2011-07-27 09:31:45 +08:00
platform-imx-fb.c net: remove mm.h inclusion from netdevice.h 2011-06-21 19:17:20 -07:00
platform-imx-i2c.c ARM: mx5: dynamically allocate high speed i2c (imx-i2c actually) 2011-08-01 11:16:56 +02:00
platform-imx-keypad.c ARM: mx53: Add keypad support 2011-07-07 10:01:13 +02:00
platform-imx-ssi.c ARM: mx53: Add SSI suport 2011-07-07 10:01:13 +02:00
platform-imx-uart.c serial/imx: fix IMX UART macro usage to reflect correct processor 2012-09-12 11:46:56 +02:00
platform-imx2-wdt.c
platform-imx21-hcd.c
platform-imx27-coda.c [media] i.MX: coda: Add platform support for coda in i.MX27 2012-08-06 08:32:23 -03:00
platform-imx_udc.c
platform-imxdi_rtc.c
platform-ipu-core.c dma: ipu: remove the use of ipu_platform_data 2012-07-01 21:57:43 +08:00
platform-mx1-camera.c
platform-mx2-camera.c [media] MX2: Add platform definitions for eMMa-PrP device 2012-02-28 07:20:32 -03:00
platform-mxc-ehci.c ARM: mx5: dynamically allocate mxc-ehci devices 2011-08-01 11:16:55 +02:00
platform-mxc-mmc.c net: remove mm.h inclusion from netdevice.h 2011-06-21 19:17:20 -07:00
platform-mxc_nand.c mtd: mxc_nand: swap iomem resource order 2012-07-06 18:17:06 +01:00
platform-mxc_pwm.c
platform-mxc_rnga.c
platform-mxc_rtc.c ARM: imx: enable support for mx35 rtc 2012-07-09 10:30:17 +02:00
platform-mxc_w1.c
platform-pata_imx.c Fix pata imx resource 2011-08-27 20:31:06 +02:00
platform-sdhci-esdhc-imx.c ARM: imx: move platform_data definitions 2012-09-14 11:17:21 +02:00
platform-spi_imx.c ARM: i.MX5x CSPI: Fixed clock name for CSPI 2012-07-16 23:11:31 +02:00