WSL2-Linux-Kernel/arch/arm/mach-omap2
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 Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
Kconfig ARM: config: sort select statements alphanumerically 2012-10-13 17:11:28 +01:00
Makefile ARM: soc: late platform updates 2012-10-07 20:55:16 +09:00
Makefile.boot
am33xx.h
am35xx-emac.c
am35xx-emac.h
am35xx.h
board-2430sdp.c
board-3430sdp.c
board-3630sdp.c
board-4430sdp.c fbdev updates for 3.7 2012-10-12 10:21:02 +09:00
board-am3517crane.c
board-am3517evm.c Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
board-apollon.c
board-cm-t35.c Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
board-cm-t3517.c
board-devkit8000.c Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
board-flash.c arch/arm/mach-omap2: Remove unecessary semicolon 2012-10-08 18:09:30 -07:00
board-flash.h
board-generic.c
board-h4.c Merge branch 'late/kirkwood' into late/soc 2012-10-04 20:17:25 -07:00
board-igep0020.c Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
board-ldp.c
board-n8x0.c
board-omap3beagle.c ARM: SoC fixes 2012-10-11 10:21:48 +09:00
board-omap3evm.c ARM: SoC fixes 2012-10-11 10:21:48 +09:00
board-omap3logic.c
board-omap3pandora.c
board-omap3stalker.c ARM: OMAP2+: remove duplicated include from board-omap3stalker.c 2012-10-08 18:09:30 -07:00
board-omap3touchbook.c
board-omap4panda.c fbdev updates for 3.7 2012-10-12 10:21:02 +09:00
board-overo.c Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
board-rm680.c
board-rx51-peripherals.c ARM: OMAP: rx51: Fix a section mismatch warn 2012-10-08 14:07:21 -07:00
board-rx51-video.c
board-rx51.c
board-rx51.h
board-ti8168evm.c
board-zoom-debugboard.c
board-zoom-display.c
board-zoom-peripherals.c ARM: SoC fixes 2012-10-11 10:21:48 +09:00
board-zoom.c
clkt2xxx_apll.c
clkt2xxx_dpll.c
clkt2xxx_dpllcore.c
clkt2xxx_osc.c
clkt2xxx_sys.c
clkt2xxx_virt_prcm_set.c
clkt34xx_dpll3m2.c
clkt_clksel.c arch/arm/mach-omap2: Remove unecessary semicolon 2012-10-08 18:09:30 -07:00
clkt_dpll.c
clkt_iclk.c
clock.c
clock.h
clock2xxx.c
clock2xxx.h
clock3xxx.c
clock3xxx.h
clock3xxx_data.c
clock33xx_data.c ARM: am33xx: clk: Update clkdev table to add mcasp alias 2012-10-07 13:09:58 -06:00
clock34xx.c
clock34xx.h
clock36xx.c
clock36xx.h
clock44xx.h
clock44xx_data.c
clock2420_data.c
clock2430.c
clock2430_data.c
clock3517.c
clock3517.h
clock_common_data.c
clockdomain.c
clockdomain.h
clockdomain2xxx_3xxx.c ARM: OMAP3: fix workaround for EMU clockdomain 2012-10-08 22:39:07 -06:00
clockdomain33xx.c
clockdomain44xx.c
clockdomains2xxx_3xxx_data.c
clockdomains3xxx_data.c
clockdomains33xx_data.c
clockdomains44xx_data.c
clockdomains2420_data.c
clockdomains2430_data.c
cm-regbits-24xx.h
cm-regbits-33xx.h
cm-regbits-34xx.h
cm-regbits-44xx.h
cm.h
cm1_44xx.h
cm2_44xx.h
cm2xxx_3xxx.c
cm2xxx_3xxx.h
cm33xx.c
cm33xx.h
cm44xx.c
cm44xx.h
cminst44xx.c
cminst44xx.h
common-board-devices.c
common-board-devices.h
common.c
common.h
control.c
control.h Merge branch 'late/kirkwood' into late/soc 2012-10-04 20:17:25 -07:00
cpuidle34xx.c
cpuidle44xx.c
ctrl_module_core_44xx.h
ctrl_module_pad_core_44xx.h
ctrl_module_pad_wkup_44xx.h
ctrl_module_wkup_44xx.h
debug-devices.h
devices.c Merge branch 'late/kirkwood' into late/soc 2012-10-04 20:17:25 -07:00
devices.h
display.c fbdev updates for 3.7 2012-10-12 10:21:02 +09:00
display.h
dma.c
dpll3xxx.c
dpll44xx.c
drm.c
dsp.c
emu.c
gpio.c
gpmc-nand.c
gpmc-onenand.c
gpmc-smc91x.c
gpmc-smc91x.h
gpmc-smsc911x.c
gpmc-smsc911x.h
gpmc.c ARM: OMAP2+: gpmc: annotate exit sections properly 2012-10-08 15:43:57 -07:00
hdq1w.c
hdq1w.h
hsmmc.c ARM: OMAP: hsmmc: fix return value check in omap_hsmmc_init_one() 2012-10-08 15:43:57 -07:00
hsmmc.h
hwspinlock.c
i2c.c
id.c
id.h
io.c
iomap.h
iommu2.c
irq.c
l3_2xxx.h
l3_3xxx.h
l4_2xxx.h
l4_3xxx.h
mailbox.c
mcbsp.c Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
msdi.c
mux.c arch/arm/mach-omap2: Remove unecessary semicolon 2012-10-08 18:09:30 -07:00
mux.h
mux34xx.c
mux34xx.h
mux44xx.c
mux44xx.h
mux2420.c
mux2420.h
mux2430.c
mux2430.h
omap-headsmp.S
omap-hotplug.c
omap-iommu.c
omap-mpuss-lowpower.c
omap-secure.c ARM: OMAP2+: Round of the carve out memory requested to section_size 2012-10-08 14:04:50 -07:00
omap-secure.h
omap-smc.S
omap-smp.c
omap-wakeupgen.c
omap-wakeupgen.h
omap4-common.c ARM: soc: device tree updates 2012-10-01 18:28:06 -07:00
omap4-keypad.h
omap4-sar-layout.h
omap24xx.h
omap34xx.h
omap44xx.h
omap54xx.h
omap_hwmod.c ARM: OMAP4/AM335x: hwmod: fix disable_module regression in hardreset handling 2012-10-08 23:08:15 -06:00
omap_hwmod_2xxx_3xxx_interconnect_data.c
omap_hwmod_2xxx_3xxx_ipblock_data.c
omap_hwmod_2xxx_interconnect_data.c Merge branch 'late/kirkwood' into late/soc 2012-10-04 20:17:25 -07:00
omap_hwmod_2xxx_ipblock_data.c ARM: OMAP2+: hwmod data: Fix PMU interrupt definitions 2012-10-07 13:09:59 -06:00
omap_hwmod_3xxx_data.c Merge tag 'omap-for-v3.7-rc1/fixes-hwmod-clock-signed-v3' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes 2012-10-09 15:00:55 -07:00
omap_hwmod_33xx_data.c
omap_hwmod_44xx_data.c Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
omap_hwmod_2420_data.c Merge branch 'late/kirkwood' into late/soc 2012-10-04 20:17:25 -07:00
omap_hwmod_2430_data.c Merge branch 'late/kirkwood' into late/soc 2012-10-04 20:17:25 -07:00
omap_hwmod_common_data.c
omap_hwmod_common_data.h
omap_opp_data.h
omap_phy_internal.c
omap_twl.c
opp.c ARM: OMAP2+: PM: MPU DVFS: use generic CPU device for MPU-SS 2012-10-08 14:59:04 -07:00
opp2xxx.h
opp3xxx_data.c
opp4xxx_data.c
opp2420_data.c
opp2430_data.c
pm-debug.c arch/arm/mach-omap2: Remove unecessary semicolon 2012-10-08 18:09:30 -07:00
pm.c Merge tag 'omap-for-v3.7-rc1/fixes-cpufreq-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes 2012-10-09 15:00:57 -07:00
pm.h
pm24xx.c
pm34xx.c
pm44xx.c
pmu.c
powerdomain-common.c
powerdomain.c
powerdomain.h
powerdomain2xxx_3xxx.c
powerdomain33xx.c
powerdomain44xx.c
powerdomains2xxx_3xxx_data.c
powerdomains2xxx_3xxx_data.h
powerdomains2xxx_data.c
powerdomains3xxx_data.c
powerdomains33xx_data.c
powerdomains44xx_data.c
prcm-common.h
prcm.c
prcm44xx.h
prcm_mpu44xx.c
prcm_mpu44xx.h
prm-regbits-24xx.h
prm-regbits-33xx.h
prm-regbits-34xx.h
prm-regbits-44xx.h
prm.h
prm2xxx_3xxx.c
prm2xxx_3xxx.h
prm33xx.c
prm33xx.h
prm44xx.c
prm44xx.h
prm_common.c
prminst44xx.c
prminst44xx.h
scrm44xx.h
sdram-hynix-h8mbx00u0mer-0em.h
sdram-micron-mt46h32m32lf-6.h
sdram-nokia.c
sdram-nokia.h
sdram-numonyx-m65kxxxxam.h
sdram-qimonda-hyb18m512160af-6.h
sdrc.c
sdrc.h
sdrc2xxx.c
serial.c
sleep24xx.S
sleep34xx.S
sleep44xx.S
smartreflex-class3.c
soc.h
sr_device.c OMAP PM related fixes for v3.7-rc 2012-10-08 15:57:41 -07:00
sram34xx.S
sram242x.S
sram243x.S
ti81xx.h
timer.c ARM: OMAP: fix return value check in realtime_counter_init() 2012-10-08 15:43:57 -07:00
twl-common.c fbdev updates for 3.7 2012-10-12 10:21:02 +09:00
twl-common.h Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
usb-host.c MFD bits for the 3.7 merge window. 2012-10-05 12:01:30 +09:00
usb-musb.c
usb-tusb6010.c
vc.c
vc.h
vc3xxx_data.c
vc44xx_data.c
voltage.c
voltage.h
voltagedomains2xxx_data.c
voltagedomains3xxx_data.c
voltagedomains33xx_data.c
voltagedomains44xx_data.c
vp.c
vp.h
vp3xxx_data.c
vp44xx_data.c
wd_timer.c
wd_timer.h