WSL2-Linux-Kernel/arch/arm/mach-tegra
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: cleanups, part 2 2012-10-01 18:32:45 -07:00
Makefile.boot ARM: tegra: Add Avionic Design Tamonten Evaluation Carrier support 2012-09-20 09:34:01 -06:00
apbio.c ARM: tegra: switch to dmaengine 2012-09-20 19:57:38 -07:00
apbio.h ARM: tegra: apbio access using dma for tegra20 only 2012-07-06 11:48:56 -06:00
board-dt-tegra20.c ARM: soc: multiplatform enablement 2012-10-01 19:11:38 -07:00
board-dt-tegra30.c ARM: SoC: convert Tegra to SMP operations 2012-09-13 15:35:49 +02:00
board-harmony-pcie.c ARM: dt: tegra: harmony: add regulators 2012-09-14 11:31:37 -06:00
board-paz00.c Merge branch 'multiplatform/platform-data' into next/multiplatform 2012-09-22 01:07:21 -07:00
board-paz00.h ARM: tegra: remove board (but not DT) support for Paz00 2012-09-14 11:31:36 -06:00
board.h ARM: tegra: paz00: enable WiFi rfkill when booting from device tree 2012-06-20 12:37:42 -06:00
clock.c ARM: tegra: introduce tegra_cpu_car_ops structures 2012-09-13 11:41:05 -06:00
clock.h ARM: tegra: Remove duplicate code 2012-09-06 11:47:20 -06:00
common.c Merge branch 'multiplatform/smp_ops' into next/multiplatform 2012-09-22 00:16:04 -07:00
common.h Merge branch 'multiplatform/smp_ops' into next/multiplatform 2012-09-22 00:16:04 -07:00
cpu-tegra.c ARM: tegra: cpu-tegra: explicitly manage re-parenting 2012-09-11 10:06:14 -06:00
cpuidle.c ARM: tegra: Remove flow controller programming 2012-06-11 11:48:43 -06:00
flowctrl.c ARM: tegra: Fix flow controller accesses 2012-05-14 10:22:01 -06:00
flowctrl.h ARM: tegra: functions to access the flowcontroller 2012-02-26 14:44:42 -08:00
fuse.c ARM: tegra: use IO_ADDRESS for getting virtual address 2012-09-06 11:46:58 -06:00
fuse.h ARM: tegra: export Tegra chipid 2012-02-26 14:44:19 -08:00
gpio-names.h [ARM] tegra: add GPIO support 2010-08-05 14:57:02 -07:00
headsmp.S ARM: tegra: clean up the common assembly macros into sleep.h 2012-09-13 11:41:06 -06:00
hotplug.c Merge branch 'multiplatform/smp_ops' into next/multiplatform 2012-09-22 00:16:04 -07:00
io.c ARM: tegra: clean-up mach/io.h 2012-03-06 21:34:41 -06:00
irq.c ARM: tegra: add support for tegra30 interrupts 2012-02-06 09:16:14 -08:00
pcie.c ARM: soc: general cleanups 2012-10-01 18:19:05 -07:00
platsmp.c Merge branch 'multiplatform/smp_ops' into next/multiplatform 2012-09-22 00:16:04 -07:00
pmc.c ARM: tegra: Add a simple PMC driver 2012-02-06 18:25:01 -08:00
pmc.h ARM: tegra: Add a simple PMC driver 2012-02-06 18:25:01 -08:00
powergate.c ARM: tegra: fix debugfs entry for Tegra30 2012-09-06 12:21:12 -06:00
reset.c ARM: tegra: make tegra_cpu_reset_handler_enable() __init 2012-06-18 16:42:57 -07:00
reset.h ARM: tegra: rework Tegra secondary CPU core bringup 2012-02-26 14:44:44 -08:00
sleep-t20.S ARM: tegra20: add CPU hotplug support 2012-09-13 11:41:06 -06:00
sleep-t30.S ARM: tegra30: add CPU hotplug support 2012-09-13 11:41:06 -06:00
sleep.S ARM: tegra: clean up the common assembly macros into sleep.h 2012-09-13 11:41:06 -06:00
sleep.h ARM: tegra20: add CPU hotplug support 2012-09-13 11:41:06 -06:00
tegra2_emc.c ARM: tegra: Fix EMC pdata initialization from registers 2012-02-06 18:25:01 -08:00
tegra2_emc.h ARM: tegra: emc: convert tegra2_emc to a platform driver 2012-02-06 18:24:59 -08:00
tegra20_clocks.c ARM: soc: cleanups, part 2 2012-10-01 18:32:45 -07:00
tegra20_clocks.h ARM: Tegra: Add smp_twd clock for Tegra20 2012-09-13 11:34:29 -06:00
tegra20_clocks_data.c ARM: soc: driver specific changes 2012-10-01 18:46:13 -07:00
tegra30_clocks.c ARM: tegra: introduce tegra_cpu_car_ops structures 2012-09-13 11:41:05 -06:00
tegra30_clocks.h ARM: tegra30: clocks: fix the wrong tegra_audio_sync_clk_ops name 2012-09-06 11:47:21 -06:00
tegra30_clocks_data.c ARM: soc: driver specific changes 2012-10-01 18:46:13 -07:00
tegra_cpu_car.h ARM: tegra: introduce tegra_cpu_car_ops structures 2012-09-13 11:41:05 -06:00
timer.c ARM: tegra: remove useless includes of <mach/*.h> 2012-09-14 11:35:36 -06:00