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/pci/saa7134
Mauro Carvalho Chehab 395eff951a [media] saa7134: 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:15:55 -02:00
..
Kconfig [media] saa7134: Fix compilation breakage when go7007 is not selected 2014-09-23 16:13:47 -03:00
Makefile [media] saa7134: Fix compilation breakage when go7007 is not selected 2014-09-23 16:13:47 -03:00
saa7134-alsa.c [media] saa7134: don't break long lines 2016-10-21 09:15:55 -02:00
saa7134-cards.c [media] saa7134: don't break long lines 2016-10-21 09:15:55 -02:00
saa7134-core.c [media] saa7134: don't break long lines 2016-10-21 09:15:55 -02:00
saa7134-dvb.c [media] saa7134: don't break long lines 2016-10-21 09:15:55 -02:00
saa7134-empress.c Linux 4.8 2016-10-05 16:43:53 -03:00
saa7134-go7007.c [media] go7007: constify go7007_hpi_ops structures 2016-02-01 07:34:07 -02:00
saa7134-i2c.c [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
saa7134-input.c [media] saa7134: don't break long lines 2016-10-21 09:15:55 -02:00
saa7134-reg.h [media] saa7134: add vidioc_querystd 2014-05-23 12:56:01 -03:00
saa7134-ts.c [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
saa7134-tvaudio.c [media] saa7134: use input types, instead of hardcoding strings 2016-02-10 07:23:42 -02:00
saa7134-vbi.c [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
saa7134-video.c [media] pci: constify vb2_ops structures 2016-09-19 16:21:42 -03:00
saa7134.h [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00