linux/drivers/media/usb/gspca
Mauro Carvalho Chehab 6cdc31b2d7 media: media/*/Kconfig: sort entries
Currently, the idems inside media Kconfig are out of order.
Sort them using the script below:

<script>
use strict;
use warnings;

my %config;
my @source;
my $out;

sub flush_config()
{
	if (scalar %config) {
		for my $c (sort keys %config) {
			$out .= $config{$c} . "\n";
		}
		%config = ();
	}

	return if (!scalar @source);

	$out .= "\n";
	for my $s (sort @source) {
		$out .= $s;
	}
	$out .= "\n";

	@source = ();
}

sub sort_kconfig($)
{
	my $fname = shift;
	my $cur_config = "";

	@source = ();
	$out = "";
	%config = ();

	open IN, $fname or die;
	while (<IN>) {
		if (m/^config\s+(.*)/) {
			$cur_config = $1;
			$config{$cur_config} .= $_;
		} elsif (m/^source\s+(.*)/) {
			push @source, $_;
		} elsif (m/^\s+/) {
			if ($cur_config eq "") {
				$out .= $_;
			} else {
				$config{$cur_config} .= $_;
			}
		} else {
			flush_config();
			$cur_config = "";
			$out .= $_;
		}
	}
	close IN or die;

	flush_config();

	$out =~ s/\n\n+/\n\n/g;
	$out =~ s/\n+$/\n/;

	open OUT, ">$fname";
	print OUT $out;
	close OUT;
}

for my $fname(@ARGV) {
	sort_kconfig $fname
}
</script>

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-03-18 05:58:35 +01:00
..
gl860 media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
m5602 media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
stv06xx media: gscpa/stv06xx: fix memory leak 2021-04-09 13:19:38 +02:00
autogain_functions.c
benq.c
conex.c
cpia1.c media: drivers/media/usb/gspca/cpia1.c : fix spelling typo 2021-06-02 14:07:37 +02:00
dtcs033.c
etoms.c
finepix.c
gspca.c media: gspca: Limit frame size to sizeimage. 2021-09-30 10:07:56 +02:00
gspca.h media: gscpa/stv06xx: fix memory leak 2021-04-09 13:19:38 +02:00
jeilinj.c
jl2005bcd.c media: gspca: make array regs_to_read static const 2022-01-23 21:18:43 +01:00
jpeg.h
Kconfig media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
kinect.c
konica.c
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
mars.c
mr97310a.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
nw80x.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
ov519.c media: gspca: ov519: replace RIGHT SINGLE QUOTATION MARK 2021-06-04 08:08:40 +02:00
ov534_9.c
ov534.c media: gspca: ov534-ov772x: use semicolons rather than commas to separate statements 2020-11-16 10:31:06 +01:00
pac207.c
pac7302.c media: gspca: remove redundant assignment of variable n 2022-02-22 09:41:11 +01:00
pac7311.c
pac_common.h
se401.c
se401.h
sn9c20x.c media: gspca/sn9c20x: Add ability to control built-in webcam LEDs 2021-09-30 10:07:39 +02:00
sn9c2028.c media: gspca: remove redundant initialization of variable status 2020-07-19 07:44:37 +02:00
sn9c2028.h
sonixb.c
sonixj.c
spca500.c
spca501.c
spca505.c
spca506.c
spca508.c
spca561.c
spca1528.c
sq905.c media: gspca/sq905: fix control-request direction 2021-06-02 14:10:25 +02:00
sq905c.c
sq930x.c
stk014.c
stk1135.c
stk1135.h
stv0680.c
sunplus.c media: gspca/sunplus: fix zero-length control requests 2021-06-02 14:15:01 +02:00
t613.c
topro.c
touptek.c
tv8532.c
vc032x.c media: drivers/media/usb/gspca: fix typo Fliker -> Flicker 2021-07-12 09:16:33 +02:00
vicam.c treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
w996Xcf.c media: media/usb/gspca/w996Xcf.c: /** -> /* 2021-03-22 11:54:09 +01:00
xirlink_cit.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
zc3xx-reg.h
zc3xx.c media: drivers/media/usb/gspca: fix typo Fliker -> Flicker 2021-07-12 09:16:33 +02:00