2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 07:04:00 +08:00
linux-next/drivers/media/usb/dvb-usb-v2
Mauro Carvalho Chehab 4ab3200608 [media] dvb-usb-v2: don't break long lines
Due to the 80-cols restrictions, and latter due to checkpatch
warnings, several strings were broken into multiple lines. This
is not considered a good practice anymore, as it makes harder
to grep for strings at the source code.

As we're right now fixing other drivers due to KERN_CONT, we need
to be able to identify what printk strings don't end with a "\n".
It is a way easier to detect those if we don't break long lines.

So, join those continuation lines.

The patch was generated via the script below, and manually
adjusted if needed.

</script>
use Text::Tabs;
while (<>) {
	if ($next ne "") {
		$c=$_;
		if ($c =~ /^\s+\"(.*)/) {
			$c2=$1;
			$next =~ s/\"\n$//;
			$n = expand($next);
			$funpos = index($n, '(');
			$pos = index($c2, '",');
			if ($funpos && $pos > 0) {
				$s1 = substr $c2, 0, $pos + 2;
				$s2 = ' ' x ($funpos + 1) . substr $c2, $pos + 2;
				$s2 =~ s/^\s+//;

				$s2 = ' ' x ($funpos + 1) . $s2 if ($s2 ne "");

				print unexpand("$next$s1\n");
				print unexpand("$s2\n") if ($s2 ne "");
			} else {
				print "$next$c2\n";
			}
			$next="";
			next;
		} else {
			print $next;
		}
		$next="";
	} else {
		if (m/\"$/) {
			if (!m/\\n\"$/) {
				$next=$_;
				next;
			}
		}
	}
	print $_;
}
</script>

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-10-21 09:40:29 -02:00
..
af9015.c [media] rc: split nec protocol into its three variants 2016-09-22 11:46:49 -03:00
af9015.h [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
af9035.c [media] rc: split nec protocol into its three variants 2016-09-22 11:46:49 -03:00
af9035.h [media] af9035: fix dual tuner detection with PCTV 79e 2016-07-15 11:44:10 -03:00
anysee.c [media] anysee: make sure loading modules is const 2014-10-21 08:49:11 -02:00
anysee.h [media] anysee: convert tda18212 tuner to I2C client 2014-09-21 19:59:13 -03:00
au6610.c
au6610.h
az6007.c [media] rc: split nec protocol into its three variants 2016-09-22 11:46:49 -03:00
ce6230.c
ce6230.h
dvb_usb_common.h [media] media: change email address 2016-01-25 12:01:08 -02:00
dvb_usb_core.c [media] media: usb: dvb-usb-v2: dvb_usb_core: don't print error when adding adapter fails 2016-08-24 13:57:58 -03:00
dvb_usb_urb.c [media] media: change email address 2016-01-25 12:01:08 -02:00
dvb_usb.h [media] media: change email address 2016-01-25 12:01:08 -02:00
dvbsky.c [media] dvb-usb-dvbsky: add new product id for TT CT2-4650 CI 2016-02-01 09:06:10 -02:00
ec168.c
ec168.h
gl861.c
gl861.h
Kconfig [media] rtl28xxu: sort the config symbols which are auto-selected 2016-06-07 15:50:40 -03:00
lmedm04.c [media] rc: split nec protocol into its three variants 2016-09-22 11:46:49 -03:00
lmedm04.h
Makefile [media] dvbsky: new driver to support DVBSky S860/S960 devices 2014-09-23 16:13:50 -03:00
mxl111sf-demod.c [media] dvb_frontend: pass the props cache to get_frontend() as arg 2016-02-04 16:27:30 -02:00
mxl111sf-demod.h treewide: remove redundant #include <linux/kconfig.h> 2016-10-11 15:06:33 -07:00
mxl111sf-gpio.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-gpio.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-i2c.c [media] dvb-usb-v2: don't break long lines 2016-10-21 09:40:29 -02:00
mxl111sf-i2c.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-phy.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-phy.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-reg.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
mxl111sf-tuner.c [media] mxl111sf-tuner: constify dvb_tuner_ops structures 2016-09-19 16:28:26 -03:00
mxl111sf-tuner.h treewide: remove redundant #include <linux/kconfig.h> 2016-10-11 15:06:33 -07:00
mxl111sf.c [media] dvb-usb-v2: don't break long lines 2016-10-21 09:40:29 -02:00
mxl111sf.h [media] mxl111sf: Add a tuner entity 2016-01-11 12:19:26 -02:00
rtl28xxu.c [media] rc: split nec protocol into its three variants 2016-09-22 11:46:49 -03:00
rtl28xxu.h [media] rtl28xxu: fix control message flaws 2015-10-22 15:48:27 -02:00
usb_urb.c [media] media: change email address 2016-01-25 12:01:08 -02:00