OpenCloudOS-Kernel/drivers/media/platform/omap3isp
Mauro Carvalho Chehab d26da99058 [media] omap3isp: 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:34:16 -02:00
..
Makefile [media] omap3isp: Move to videobuf2 2014-05-25 11:38:53 -03:00
cfa_coef_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
gamma_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isp.c [media] omap3isp: don't break long lines 2016-10-21 09:34:16 -02:00
isp.h [media] v4l: omap3isp: Use V4L2 graph PM operations 2016-03-03 12:32:49 -03:00
ispccdc.c [media] omap3isp: don't break long lines 2016-10-21 09:34:16 -02:00
ispccdc.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispccp2.c [media] omap3isp: rename single labels to just error 2016-01-11 12:19:08 -02:00
ispccp2.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispcsi2.c [media] omap3isp: don't break long lines 2016-10-21 09:34:16 -02:00
ispcsi2.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispcsiphy.c [media] omap3isp: don't break long lines 2016-10-21 09:34:16 -02:00
ispcsiphy.h [media] v4l: omap3isp: Drop platform data support 2015-08-16 13:18:06 -03:00
isph3a.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isph3a_aewb.c [media] omap3isp: don't break long lines 2016-10-21 09:34:16 -02:00
isph3a_af.c [media] omap3isp: don't break long lines 2016-10-21 09:34:16 -02:00
isphist.c [media] omap3isp: Replace mmio_base_phys array with the histogram block base 2015-04-02 16:42:52 -03:00
isphist.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isppreview.c [media] v4l: omap3isp: preview: Mark output buffer done first 2016-01-25 08:29:06 -02:00
isppreview.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispreg.h [media] omap3isp: ccdc: Support the interlaced field orders at the CCDC output 2014-08-21 15:25:14 -05:00
ispresizer.c [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispresizer.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispstat.c [media] omap3isp: don't break long lines 2016-10-21 09:34:16 -02:00
ispstat.h [media] use v4l2_get_timestamp where possible 2015-10-01 08:29:23 -03:00
ispvideo.c [media] v4l2: remove g/s_crop from video ops 2016-08-24 09:46:09 -03:00
ispvideo.h [media] media/platform: convert drivers to use the new vb2_queue dev field 2016-07-08 14:40:50 -03:00
luma_enhance_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
noise_filter_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
omap3isp.h [media] v4l: omap3isp: Fix data lane shift configuration 2016-01-25 08:29:50 -02:00