kernel-fxtec-pro1x/arch/arm/plat-omap
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/plat ARM: soc: late platform updates 2012-10-07 20:55:16 +09:00
clock.c ARM: OMAP2+: hwmod: get rid of all omap_clk_get_by_name usage 2012-09-22 10:50:01 -06:00
common.c ARM: omap: move platform_data definitions 2012-09-19 17:39:52 +02:00
counter_32k.c ARM: OMAP: counter: add locking to read_persistent_clock 2012-10-08 14:01:12 -07:00
debug-devices.c ARM: OMAP: remove plat/board.h file 2012-09-10 16:39:21 -07:00
debug-leds.c ARM: soc: driver specific changes 2012-10-01 18:46:13 -07:00
dma.c These fixes are needed to fix non-omap build breakage for 2012-09-23 17:15:44 -06:00
dmtimer.c ARM: OMAP: dmtimers: Fix locking issue in omap_dm_timer_request*() 2012-08-13 06:23:16 -07:00
fb.c ARM: OMAP1: move lcd pdata out of arch/arm/* 2012-09-10 16:34:00 -07:00
i2c.c Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux 2012-10-11 10:27:51 +09:00
Kconfig ARM: config: sort select statements alphanumerically 2012-10-13 17:11:28 +01:00
mailbox.c workqueue: deprecate flush[_delayed]_work_sync() 2012-08-20 14:51:24 -07:00
Makefile ARM: OMAP1: Make plat/mux.h omap1 only 2012-09-20 14:54:57 -07:00
omap-pm-noop.c arch/arm/plat-omap/omap-pm-noop.c: Remove unecessary semicolon 2012-10-08 18:09:30 -07:00
omap_device.c OMAP PM related fixes for v3.7-rc 2012-10-08 15:57:41 -07:00
sram.c These fixes are needed to fix non-omap build breakage for 2012-09-23 17:15:44 -06:00
sram.h