dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/arch/arm/mach-at91
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 '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
Makefile ARM: at91: Add machine files for AT91SAM9N12 SoC 2012-04-28 01:40:11 +08:00
Makefile.boot ARM: move all dtb targets out of Makefile.boot 2012-09-14 09:22:04 -05:00
at91rm9200.c i2c: at91: add new driver 2012-09-12 14:49:13 +02:00
at91rm9200_devices.c Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux 2012-10-11 10:27:51 +09:00
at91rm9200_time.c ARM: at91: fix system timer irq issue due to sparse irq support 2012-08-23 14:55:32 +02:00
at91sam9_alt_reset.S ARM: at91: make sdram/ddr register base soc independent 2012-02-23 14:57:56 +01:00
at91sam9g45.c ARM: at91: add clocks for I2C DT entries 2012-09-12 14:49:15 +02:00
at91sam9g45_devices.c Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux 2012-10-11 10:27:51 +09:00
at91sam9g45_reset.S ARM: at91: make sdram/ddr register base soc independent 2012-02-23 14:57:56 +01:00
at91sam9n12.c ARM: at91: add clocks for I2C DT entries 2012-09-12 14:49:15 +02:00
at91sam9rl.c i2c: at91: add new driver 2012-09-12 14:49:13 +02:00
at91sam9rl_devices.c Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux 2012-10-11 10:27:51 +09:00
at91sam9x5.c ARM: at91: add clocks for I2C DT entries 2012-09-12 14:49:15 +02:00
at91sam926x_time.c ARM: at91: sparse irq support 2012-07-02 14:26:59 +02:00
at91sam9260.c ARM: at91: add clocks for I2C DT entries 2012-09-12 14:49:15 +02:00
at91sam9260_devices.c Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux 2012-10-11 10:27:51 +09:00
at91sam9261.c i2c: at91: add new driver 2012-09-12 14:49:13 +02:00
at91sam9261_devices.c Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux 2012-10-11 10:27:51 +09:00
at91sam9263.c Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux 2012-10-11 10:27:51 +09:00
at91sam9263_devices.c Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux 2012-10-11 10:27:51 +09:00
at91x40.c ARM: at91: use __iomem pointers for MMIO 2012-09-18 10:15:11 +02:00
at91x40_time.c ARM: at91: use __iomem pointers for MMIO 2012-09-18 10:15:11 +02:00
board-1arm.c ARM: at91: at91 based machines specify their own irq handler at run time 2012-07-02 14:26:58 +02:00
board-afeb-9260v1.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-cam60.c ARM: at91: at91 based machines specify their own irq handler at run time 2012-07-02 14:26:58 +02:00
board-carmeva.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-cpu9krea.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-cpuat91.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-csb337.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-csb637.c ARM: at91: at91 based machines specify their own irq handler at run time 2012-07-02 14:26:58 +02:00
board-dt.c ARM: at91: at91 based machines specify their own irq handler at run time 2012-07-02 14:26:58 +02:00
board-eb01.c ARM: at91: at91 based machines specify their own irq handler at run time 2012-07-02 14:26:58 +02:00
board-eb9200.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-ecbat91.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-eco920.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-flexibity.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-foxg20.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-gsia18s.c ARM: at91: at91 based machines specify their own irq handler at run time 2012-07-02 14:26:58 +02:00
board-kafa.c Merge branch 'for-arm-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds into next/drivers 2012-08-13 16:45:48 +02:00
board-kb9202.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-neocore926.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-pcontrol-g20.c ARM: at91: at91 based machines specify their own irq handler at run time 2012-07-02 14:26:58 +02:00
board-picotux200.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-qil-a9260.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-rm9200dk.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-rm9200ek.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-rsi-ews.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-sam9-l9260.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-sam9g20ek.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-sam9m10g45ek.c ARM: at91: at91 based machines specify their own irq handler at run time 2012-07-02 14:26:58 +02:00
board-sam9rlek.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-sam9260ek.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-sam9261ek.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-sam9263ek.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-snapper9260.c ARM: at91: at91 based machines specify their own irq handler at run time 2012-07-02 14:26:58 +02:00
board-stamp9g20.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-usb-a926x.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
board-yl-9200.c Merge tag 'at91-for-next-soc' of git://github.com/at91linux/linux-at91 into at91/mci 2012-08-13 17:09:38 +02:00
clock.c sections: fix section conflicts in arch/arm/ 2012-10-06 03:04:38 +09:00
clock.h at91: switch to CLKDEV_LOOKUP 2011-05-25 23:04:34 +08:00
cpuidle.c ARM: at91: pm select memory controler at runtime 2012-04-17 14:46:43 +02:00
generic.h ARM: at91: add AIC5 support 2012-07-02 14:31:00 +02:00
gpio.c ARM: at91: aic can use fast eoi handler type 2012-07-02 14:26:57 +02:00
irq.c ARM: at91: fix new build errors 2012-07-04 13:56:48 +02:00
leds.c ARM: at91: convert old leds drivers to gpio_led and led_trigger drivers 2012-07-31 21:23:32 +08:00
pm.c ARM: at91: unused variable in at91_pm_verify_clocks 2012-10-04 16:59:51 +02:00
pm.h ARN: at91: introduce SOC_AT91xxx define to allow to compile SoC core support 2012-04-17 14:47:21 +02:00
pm_slowclock.S ARN: at91: introduce SOC_AT91xxx define to allow to compile SoC core support 2012-04-17 14:47:21 +02:00
sam9_smc.c ARM: at91: add accessor to manage SMC 2012-02-13 18:31:36 +01:00
sam9_smc.h ARM: at91: add accessor to manage SMC 2012-02-13 18:31:36 +01:00
setup.c Merge branch 'late/fixes' into fixes 2012-10-07 07:22:32 -07:00
soc.h ARM: at91: Add machine header file for AT91SAM9N12 SoC 2012-04-28 01:39:43 +08:00