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/au0828
Mauro Carvalho Chehab 22990690b1 [media] au0828: 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:38:09 -02:00
..
au0828-cards.c [media] au0828: disable tuner links and cache tuner/decoder 2016-03-31 14:50:38 -03:00
au0828-cards.h
au0828-core.c [media] media-device: dynamically allocate struct media_devnode 2016-06-15 17:57:24 -03:00
au0828-dvb.c [media] au0828: Refactoring for start_urb_transfer() 2016-02-01 07:39:25 -02:00
au0828-i2c.c [media] au0828: use pr_foo macros 2014-08-21 15:25:08 -05:00
au0828-input.c [media] rc: split nec protocol into its three variants 2016-09-22 11:46:49 -03:00
au0828-reg.h
au0828-vbi.c [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
au0828-video.c [media] au0828: don't break long lines 2016-10-21 09:38:09 -02:00
au0828.h [media] au0828: remove unused macro 2016-04-13 17:13:00 -03:00
Kconfig [media] media: au0828 - convert to use videobuf2 2015-02-02 11:58:27 -02:00
Makefile [media] au0828: add support for IR on HVR-950Q 2014-07-30 15:51:43 -03:00