2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 14:43:58 +08:00
linux-next/drivers/media/usb
Mauro Carvalho Chehab 3a611875d9 [media] zr364xx: 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:55:35 -02:00
..
airspy [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
as102 media: usb: as102: as102_usb_drv: don't print error when allocating urb fails 2016-08-30 19:13:53 +02:00
au0828 [media] au0828: don't break long lines 2016-10-21 09:38:09 -02:00
b2c2 [media] b2c2: don't break long lines 2016-10-21 09:38:31 -02:00
cpia2 [media] cpia2: don't break long lines 2016-10-21 09:38:51 -02:00
cx231xx [media] cx231xx: don't break long lines 2016-10-21 09:39:15 -02:00
dvb-usb [media] dvb-usb: don't break long lines 2016-10-21 09:39:51 -02:00
dvb-usb-v2 [media] dvb-usb-v2: don't break long lines 2016-10-21 09:40:29 -02:00
em28xx [media] em28xx: don't break long lines 2016-10-21 09:40:51 -02:00
go7007 [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
gspca [media] gspca: don't break long lines 2016-10-21 09:41:37 -02:00
hackrf [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
hdpvr [media] hdpvr: don't break long lines 2016-10-21 09:42:04 -02:00
msi2500 [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
pvrusb2 [media] pvrusb2: don't break long lines 2016-10-21 09:51:20 -02:00
pwc [media] pwc: don't break long lines 2016-10-21 09:52:08 -02:00
s2255 [media] s2255drv: don't use stack for DMA 2016-10-14 12:52:28 -03:00
siano [media] siano: don't break long lines 2016-10-21 09:52:50 -02:00
stk1160 [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
stkwebcam [media] stkwebcam: don't break long lines 2016-10-21 09:53:16 -02:00
tm6000 [media] tm6000: don't break long lines 2016-10-21 09:53:59 -02:00
ttusb-budget [media] ttusb-budget: don't break long lines 2016-10-21 09:54:20 -02:00
ttusb-dec [media] ttusb-dec: don't break long lines 2016-10-21 09:54:45 -02:00
usbtv [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
usbvision [media] usbvision: don't break long lines 2016-10-21 09:55:11 -02:00
uvc [media] uvc_driver: use KERN_CONT where needed 2016-10-21 08:51:20 -02:00
zr364xx [media] zr364xx: don't break long lines 2016-10-21 09:55:35 -02:00
Kconfig [media] tlg2300: move to staging in preparation for removal 2014-12-16 23:21:43 -02:00
Makefile [media] tlg2300: move to staging in preparation for removal 2014-12-16 23:21:43 -02:00