linux/drivers/media/platform/ti-vpe
Mauro Carvalho Chehab 637d5ac513 [media] ti-vpe: 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>

Acked-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-10-21 09:35:36 -02:00
..
cal_regs.h [media] media: ti-vpe: Add CAL v4l2 camera capture driver 2016-02-01 08:45:26 -02:00
cal.c [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
csc.c [media] ti-vpe: fix sparse warnings 2014-11-05 09:09:26 -02:00
csc.h [media] v4l: ti-vpe: Add helper to perform color conversion 2014-01-07 06:57:08 -02:00
Makefile [media] media: ti-vpe: Add CAL v4l2 camera capture driver 2016-02-01 08:45:26 -02:00
sc_coeff.h [media] v4l: ti-vpe: support loading of scaler coefficients 2014-01-07 06:54:48 -02:00
sc.c [media] ti-vpe: fix sparse warnings 2014-11-05 09:09:26 -02:00
sc.h [media] v4l: ti-vpe: enable basic scaler support 2014-01-07 06:55:35 -02:00
vpdma_priv.h [media] v4l: ti-vpe: Fix the data_type value for UYVY VPDMA format 2013-12-10 16:49:02 -02:00
vpdma.c [media] ti-vpe: don't break long lines 2016-10-21 09:35:36 -02:00
vpdma.h [media] v4l: ti-vpe: Fix some params in VPE data descriptors 2014-05-23 14:32:18 -03:00
vpe_regs.h [media] v4l: ti-vpe: create a color space converter block library 2014-01-07 06:56:18 -02:00
vpe.c [media] ti-vpe: don't break long lines 2016-10-21 09:35:36 -02:00