linux-stable/drivers/media/dvb-frontends
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
..
cxd2880 include/linux/delay.h: replace kernel.h with the necessary inclusions 2021-11-09 10:02:49 -08:00
drx39xyj media: dvb-frontends: remove redundant words and fix several typos 2021-05-21 15:08:47 +02:00
a8293.c
a8293.h
af9013.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
af9013.h
af9013_priv.h
af9033.c media: dvb-frontends/af9033.c: fix missing error codes 2021-01-27 08:38:27 +01:00
af9033.h
af9033_priv.h
as102_fe.c media: as102: improve formatting 2020-01-08 11:44:44 +01:00
as102_fe.h
as102_fe_types.h
ascot2e.c
ascot2e.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
atbm8830.c
atbm8830.h
atbm8830_priv.h
au8522.h
au8522_common.c
au8522_decoder.c media: au8522: improve formatting 2020-01-08 11:45:50 +01:00
au8522_dig.c
au8522_priv.h
bcm3510.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
bcm3510.h
bcm3510_priv.h
bsbe1-d01a.h
bsbe1.h
bsru6.h
cx22700.c
cx22700.h
cx22702.c
cx22702.h
cx24110.c
cx24110.h
cx24113.c media: drivers: cx24113: remove redundant variable r 2021-11-19 16:12:18 +00:00
cx24113.h
cx24116.c
cx24116.h
cx24117.c media: dvb-frontends: cx24117: Delete 'break' after 'goto' 2021-07-12 14:28:10 +02:00
cx24117.h
cx24120.c media: dvb-frontends: Fix fall-through warnings for Clang 2021-01-27 12:54:44 +01:00
cx24120.h
cx24123.c
cx24123.h
cxd2099.c media: dvb-frontends/cxd2099: Remove repeated verbose license text 2021-09-30 10:08:02 +02:00
cxd2099.h media: dvb-frontends/cxd2099: Remove repeated verbose license text 2021-09-30 10:08:02 +02:00
cxd2820r.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
cxd2820r_c.c
cxd2820r_core.c media: dvb-frontends: cxd2820r_core: convert to use i2c_new_client_device() 2020-01-09 15:58:09 +01:00
cxd2820r_priv.h media: cxd2820r: include the right header 2021-09-30 10:07:43 +02:00
cxd2820r_t.c
cxd2820r_t2.c
cxd2841er.c media: cxd2841er: use DIV_ROUND_UP to calculate timeout 2021-01-14 13:46:37 +01:00
cxd2841er.h
cxd2841er_priv.h
dib0070.c media: dib0070: incorrect format specifiers detected by clang 2020-01-08 11:38:41 +01:00
dib0070.h
dib0090.c media: dvb-frontends: Fix fall-through warnings for Clang 2021-01-27 12:54:44 +01:00
dib0090.h
dib3000.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
dib3000mb.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
dib3000mb_priv.h
dib3000mc.c media: dvb_frontend: make static read-only array DIB3000MC_I2C_ADDRESS const 2022-03-07 11:51:14 +01:00
dib3000mc.h
dib7000m.c media: dib7000m: incorrect format specifier detected by clang 2020-01-08 11:37:11 +01:00
dib7000m.h
dib7000p.c media: dib7000p: make static read-only arrays notch and sine const 2022-03-07 11:51:32 +01:00
dib7000p.h
dib8000.c media: dib8000: Fix a memleak in dib8000_init() 2021-12-07 11:29:55 +01:00
dib8000.h
dib9000.c media: dib9000: Use min() instead of doing it manually 2021-11-19 16:08:37 +00:00
dib9000.h
dibx000_common.c
dibx000_common.h
drxd.h
drxd_firm.c
drxd_firm.h
drxd_hard.c media: drxd: drop offset var from DownloadMicrocode() 2021-11-29 13:23:13 +01:00
drxd_map_firm.h
drxk.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
drxk_hard.c media: drxk: drop operation_mode from set_dvbt() 2021-11-29 13:23:13 +01:00
drxk_hard.h
drxk_map.h
ds3000.c
ds3000.h
dvb-pll.c
dvb-pll.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
dvb_dummy_fe.c media: dvb_dummy_fe: Add blank line after declaration 2020-01-08 11:43:52 +01:00
dvb_dummy_fe.h media: dvb_dummy_fe: change printk to pr_warn 2020-01-08 11:44:21 +01:00
ec100.c
ec100.h
eds1547.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
gp8psk-fe.c
gp8psk-fe.h
helene.c
helene.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
horus3a.c
horus3a.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
isl6405.c
isl6405.h
isl6421.c
isl6421.h
isl6423.c
isl6423.h
itd1000.c
itd1000.h
itd1000_priv.h
ix2505v.c
ix2505v.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
Kconfig media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
l64781.c
l64781.h
lg2160.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
lg2160.h
lgdt330x.c media: dvb-frontends: lgdt330x: convert to use i2c_new_client_device() 2020-01-09 15:58:29 +01:00
lgdt330x.h
lgdt330x_priv.h
lgdt3305.c
lgdt3305.h
lgdt3306a.c media: dvb-frontends: Remove redundant error check on variable ret 2021-04-09 13:00:59 +02:00
lgdt3306a.h
lgs8gl5.c
lgs8gl5.h
lgs8gxx.c
lgs8gxx.h
lgs8gxx_priv.h
lnbh24.h
lnbh25.c
lnbh25.h
lnbh29.c
lnbh29.h
lnbp21.c
lnbp21.h
lnbp22.c
lnbp22.h
m88ds3103.c media: m88ds3103: drop reg11 calculus from m88ds3103b_select_mclk() 2021-11-29 13:23:13 +01:00
m88ds3103.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
m88ds3103_priv.h media: m88ds3103: Add support for ds3103b demod 2020-03-12 09:25:21 +01:00
m88rs2000.c media: dvb-frontends: Fix fall-through warnings for Clang 2021-01-27 12:54:44 +01:00
m88rs2000.h
Makefile media: Makefiles: sort entries where it fits 2022-03-14 09:42:59 +01:00
mb86a16.c media: dvb-frontends: mb86a16.c: remove useless if/else 2020-08-29 08:02:46 +02:00
mb86a16.h
mb86a16_priv.h
mb86a20s.c media: mb86a20s: make arrays static const 2021-10-08 13:43:54 +02:00
mb86a20s.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
mn88443x.c media: dvb-frontends: mn88443x: Handle errors of clk_prepare_enable() 2021-10-08 13:53:30 +02:00
mn88443x.h
mn88472.c
mn88472.h
mn88472_priv.h
mn88473.c
mn88473.h
mn88473_priv.h
mt312.c media: dvb-frontends: Use DIV_ROUND_CLOSEST directly to make it readable 2019-10-16 11:47:14 -03:00
mt312.h
mt312_priv.h
mt352.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
mt352.h
mt352_priv.h
mxl5xx.c media: dvb-frontend/mxl5xx: Remove repeated verbose license text 2021-09-30 10:08:01 +02:00
mxl5xx.h media: dvb-frontend/mxl5xx: Remove repeated verbose license text 2021-09-30 10:08:01 +02:00
mxl5xx_defs.h media: dvb-frontend/mxl5xx: Remove repeated verbose license text 2021-09-30 10:08:01 +02:00
mxl5xx_regs.h media: dvb-frontend/mxl5xx: Remove repeated verbose license text 2021-09-30 10:08:01 +02:00
mxl692.c media: dvb-frontend/mxl692: Remove repeated verbose license text 2021-09-30 10:08:01 +02:00
mxl692.h media: dvb-frontend/mxl692: Remove repeated verbose license text 2021-09-30 10:08:01 +02:00
mxl692_defs.h media: dvb-frontend/mxl692: Remove repeated verbose license text 2021-09-30 10:08:01 +02:00
nxt200x.c media: remove unneeded break 2020-11-16 10:31:10 +01:00
nxt200x.h
nxt6000.c
nxt6000.h
nxt6000_priv.h
or51132.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
or51132.h
or51211.c
or51211.h
rtl2830.c
rtl2830.h
rtl2830_priv.h
rtl2832.c media: dvb-frontends/rtl2832.c: fix missing error code 2021-01-27 08:37:18 +01:00
rtl2832.h
rtl2832_priv.h
rtl2832_sdr.c media: rtl2832_sdr: clean the freed pointer and counter 2021-10-08 13:54:16 +02:00
rtl2832_sdr.h
s5h1409.c
s5h1409.h
s5h1411.c media: s5h1411.c: Fix a typo in the VSB SNR table 2021-11-19 16:19:59 +00:00
s5h1411.h
s5h1420.c
s5h1420.h
s5h1420_priv.h
s5h1432.c
s5h1432.h
s921.c
s921.h
si21xx.c media: si21xx: use time_is_before_jiffies() instead of open coding it 2022-02-22 09:41:12 +01:00
si21xx.h
si2165.c media: Replace HTTP links with HTTPS ones: SI2165 MEDIA DRIVER 2020-11-27 13:05:07 +01:00
si2165.h media: Replace HTTP links with HTTPS ones: SI2165 MEDIA DRIVER 2020-11-27 13:05:07 +01:00
si2165_priv.h
si2168.c media: media si2168: Fix spelling mistake "previsously" -> "previously" 2021-12-07 11:29:57 +01:00
si2168.h media: si2168: use bits instead of bool for flags 2019-10-10 07:05:51 -03:00
si2168_priv.h media: media si2168: fully initialize si2168 on resume only when necessary 2021-11-19 16:38:38 +00:00
sp2.c
sp2.h
sp2_priv.h
sp887x.c media: sp887x: drop unneeded assignment 2021-11-19 16:39:39 +00:00
sp887x.h
stb0899_algo.c
stb0899_cfg.h
stb0899_drv.c
stb0899_drv.h
stb0899_priv.h
stb0899_reg.h
stb6000.c
stb6000.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
stb6100.c media: stb6100: mark a currently unused function as such 2021-11-29 10:14:34 +01:00
stb6100.h
stb6100_cfg.h
stb6100_proc.h
stv090x.c
stv090x.h
stv090x_priv.h
stv090x_reg.h
stv0288.c
stv0288.h
stv0297.c
stv0297.h
stv0299.c Tag branch 2022-03-07 16:25:17 +01:00
stv0299.h
stv0367.c media: dvb-frontends/stv0367: remove redundant variable ADCClk_Hz 2021-11-19 16:09:07 +00:00
stv0367.h
stv0367_defs.h
stv0367_priv.h
stv0367_regs.h
stv0900.h
stv0900_core.c media: stv0900_core: remove redundant assignment to variable val 2020-05-12 17:31:30 +02:00
stv0900_init.h
stv0900_priv.h
stv0900_reg.h
stv0900_sw.c
stv0910.c media: dvb-frontends/stv0910: Remove repeated verbose license text 2021-09-30 10:08:02 +02:00
stv0910.h media: dvb-frontends/stv0910: Remove repeated verbose license text 2021-09-30 10:08:02 +02:00
stv0910_regs.h
stv6110.c
stv6110.h
stv6110x.c
stv6110x.h
stv6110x_priv.h
stv6110x_reg.h
stv6111.c media: dvb-frontends/stv6111: Remove repeated verbose license text 2021-09-30 10:08:01 +02:00
stv6111.h media: dvb-frontends/stv6111: Remove repeated verbose license text 2021-09-30 10:08:01 +02:00
tc90522.c
tc90522.h
tda665x.c
tda665x.h
tda826x.c
tda826x.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
tda1002x.h
tda1004x.c
tda1004x.h
tda8083.c media: tda8083: use time_is_after_jiffies() instead of open coding it 2022-02-22 09:41:12 +01:00
tda8083.h
tda8261.c
tda8261.h
tda8261_cfg.h
tda10021.c media: tda10021: avoid casts when using symbol_rate 2020-09-03 11:11:03 +02:00
tda10023.c
tda10048.c
tda10048.h
tda10071.c media: tda10071: fix unsigned sign extension overflow 2020-03-12 09:46:45 +01:00
tda10071.h
tda10071_priv.h
tda10086.c media: tda10086: cleanup symbol_rate setting logic 2020-09-03 11:07:28 +02:00
tda10086.h
tda18271c2dd.c media: dvb-frontends: tda18271c2dd: Constify static structs 2020-09-27 11:26:00 +02:00
tda18271c2dd.h
tda18271c2dd_maps.h media: dvb-frontends: tda18271c2dd: Constify static structs 2020-09-27 11:26:00 +02:00
tdhd1.h
ts2020.c media: ts2020: use semicolons rather than commas to separate statements 2020-11-16 10:31:06 +01:00
ts2020.h
tua6100.c
tua6100.h
ves1x93.c
ves1x93.h
ves1820.c
ves1820.h
z0194a.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
zd1301_demod.c
zd1301_demod.h media: dvb-frontends: remove a clone of a kernel-doc markup at zd1301_demod.h 2020-09-30 18:50:20 +02:00
zl10036.c
zl10036.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
zl10039.c
zl10039.h
zl10353.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
zl10353.h
zl10353_priv.h