OpenCloudOS-Kernel/drivers/media/usb/dvb-usb
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
..
Kconfig media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
Makefile media: move ttpci-eeprom to common 2021-06-02 11:16:15 +02:00
a800.c media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
af9005-fe.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
af9005-remote.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
af9005-script.h
af9005.c media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
af9005.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
az6027.c media: dvb-usb: fix ununit-value in az6027_rc_query 2021-09-30 10:07:43 +02:00
az6027.h
cinergyT2-core.c media: cinergyt2: make properties const 2021-06-08 15:53:19 +02:00
cinergyT2-fe.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
cinergyT2.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
cxusb-analog.c media: media/usb: use vb2_video_unregister_device() 2020-08-28 15:02:52 +02:00
cxusb.c media: xc2028: rename the driver from tuner-xc2028 2022-03-12 16:59:50 +01:00
cxusb.h media: cxusb: Revert "media: cxusb: add raw mode support for, Medion MD95700" 2019-06-05 15:26:40 -04:00
dib07x0.h
dib0700.h media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
dib0700_core.c media: dib0700: Only touch one bit when start/stop an adapter 2021-11-19 16:24:07 +00:00
dib0700_devices.c media: xc2028: rename the driver from tuner-xc2028 2022-03-12 16:59:50 +01:00
dibusb-common.c media: usb: dvd-usb: fix uninit-value bug in dibusb_read_eeprom_byte() 2021-10-08 13:54:43 +02:00
dibusb-mb.c media: dvb: return -EREMOTEIO on i2c transfer failure. 2020-04-21 12:55:07 +02:00
dibusb-mc-common.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
dibusb-mc.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
dibusb.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
digitv.c media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
digitv.h
dtt200u-fe.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
dtt200u.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
dtt200u.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
dtv5100.c media: dtv5100: fix control-request directions 2021-06-02 14:09:51 +02:00
dtv5100.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
dvb-usb-common.h media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
dvb-usb-dvb.c media: cxusb: implement Medion MD95700 digital / analog coexistence 2019-05-28 15:59:19 -04:00
dvb-usb-firmware.c media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
dvb-usb-i2c.c media: dvb-usb: Fix error handling in dvb_usb_i2c_init 2021-07-22 08:23:15 +02:00
dvb-usb-init.c media: dvb-usb: Fix error handling in dvb_usb_i2c_init 2021-07-22 08:23:15 +02:00
dvb-usb-remote.c
dvb-usb-urb.c media: dvb-usb/dvb-usb-urb.c: initialize actlen to 0 2019-12-13 09:17:42 +01:00
dvb-usb.h media: dvb-usb: avoid -Wempty-body warnings 2021-04-09 13:05:25 +02:00
dw2102.c media: dw2102: Fix use after free 2021-12-14 15:09:14 +01:00
dw2102.h
gp8psk.c media: gp8psk: initialize stats at power control logic 2020-11-27 07:40:21 +01:00
gp8psk.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
m920x.c media: m920x: don't use stack on USB reads 2021-12-07 11:29:58 +01:00
m920x.h
nova-t-usb2.c media: dvb-usb: fix uninit-value in dvb_usb_adapter_dvb_init 2021-07-22 08:22:17 +02:00
opera1.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
pctv452e.c media: dvb_usb_pctv452e: use ISL6423 voltage regulator per default 2020-09-03 16:14:59 +02:00
technisat-usb2.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ttusb2.c media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
ttusb2.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
umt-010.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
usb-urb.c media: dvb-usb: fix spelling mistake: "completition" -> "completion" 2018-08-03 16:08:55 -04:00
vp702x-fe.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
vp702x.c media: dvb-usb: fix uninit-value in vp702x_read_mac_addr 2021-07-22 08:22:45 +02:00
vp702x.h
vp7045-fe.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
vp7045.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
vp7045.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00