alistair23-linux/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 ARM: mx3: introduce SOC_IMX31 and SOC_IMX35 2010-11-19 21:54:35 +01:00
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 ARM: imx: Add gpio-keys to plat-mxc 2010-10-26 16:24:04 +02:00
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 ARM: mx5: Add watchdog support for MX53 2011-02-18 10:57:56 +01:00
platform-imx21-hcd.c ARM: imx: dynamically allocate imx21-hcd devices 2010-11-17 10:01:33 +01:00
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 ARM: imx: dynamically allocate imx_udc device 2010-11-17 10:01:20 +01:00
platform-imxdi_rtc.c ARM: mxc: fix buggy '.end' of IORESOURCE_MEM in device codes 2011-03-23 15:08:14 +01:00
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 ARM: imx: dynamically allocate mx1-camera device 2010-11-17 10:01:22 +01:00
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 ARM: mx5: dynamically allocate pwm devices 2011-01-12 14:50:09 +01:00
platform-mxc_rnga.c ARM: mx3: dynamically allocate mxc_rnga devices 2010-11-19 21:54:35 +01:00
platform-mxc_rtc.c ARM: imx: enable support for mx35 rtc 2012-07-09 10:30:17 +02:00
platform-mxc_w1.c ARM: mx3: introduce SOC_IMX31 and SOC_IMX35 2010-11-19 21:54:35 +01:00
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