linux/drivers/media/pci/cx18
Mauro Carvalho Chehab 6beb1388a0 [media] cx18: 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 08:58:39 -02:00
..
cx18-alsa-main.c [media] cx18: don't break long lines 2016-10-21 08:58:39 -02:00
cx18-alsa-mixer.c [media] cx18: use v4l2_g/s_ctrl instead of the g/s_ctrl ops 2016-07-12 11:15:51 -03:00
cx18-alsa-mixer.h
cx18-alsa-pcm.c [media] pci: constify snd_pcm_ops structures 2016-09-19 16:18:42 -03:00
cx18-alsa-pcm.h [media] cx18/ivtv: fix regression: remove __init from a non-init function 2013-02-11 18:18:14 -02:00
cx18-alsa.h [media] cx18: remove duplicate CX18_ALSA_DBGFLG_WARN define 2014-07-04 16:09:57 -03:00
cx18-audio.c
cx18-audio.h
cx18-av-audio.c
cx18-av-core.c [media] cx18: don't break long lines 2016-10-21 08:58:39 -02:00
cx18-av-core.h [media] cx18: remove g_chip_ident support 2013-06-17 08:41:17 -03:00
cx18-av-firmware.c [media] cx18: don't break long lines 2016-10-21 08:58:39 -02:00
cx18-av-vbi.c
cx18-cards.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
cx18-cards.h [media] cx18: add device_caps support 2014-12-02 11:28:48 -02:00
cx18-controls.c [media] cx18: don't break long lines 2016-10-21 08:58:39 -02:00
cx18-controls.h [media] cx231xx: constify cx2341x_handler_ops structures 2015-12-03 11:27:08 -02:00
cx18-driver.c [media] cx18: don't break long lines 2016-10-21 08:58:39 -02:00
cx18-driver.h cx18: use macros instead of static const vars 2016-06-24 08:50:24 -03:00
cx18-dvb.c [media] cx18: don't break long lines 2016-10-21 08:58:39 -02:00
cx18-dvb.h
cx18-fileops.c [media] cx18: don't break long lines 2016-10-21 08:58:39 -02:00
cx18-fileops.h
cx18-firmware.c [media] pci drivers: use %zu instead of %zd 2014-09-26 06:51:00 -03:00
cx18-firmware.h
cx18-gpio.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
cx18-gpio.h
cx18-i2c.c [media] rc: Hauppauge z8f0811 can decode RC6 2016-09-22 11:44:52 -03:00
cx18-i2c.h
cx18-io.c
cx18-io.h
cx18-ioctl.c [media] cx18: don't break long lines 2016-10-21 08:58:39 -02:00
cx18-ioctl.h [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
cx18-irq.c [media] cx18: don't break long lines 2016-10-21 08:58:39 -02:00
cx18-irq.h
cx18-mailbox.c [media] cx18: don't break long lines 2016-10-21 08:58:39 -02:00
cx18-mailbox.h
cx18-queue.c [media] cx18: don't break long lines 2016-10-21 08:58:39 -02:00
cx18-queue.h
cx18-scb.c
cx18-scb.h
cx18-streams.c [media] cx18: don't break long lines 2016-10-21 08:58:39 -02:00
cx18-streams.h [media] cx18: embed video_device 2015-04-03 00:05:36 -03:00
cx18-vbi.c cx18: use macros instead of static const vars 2016-06-24 08:50:24 -03:00
cx18-vbi.h
cx18-version.h
cx18-video.c
cx18-video.h
cx23418.h [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
Kconfig
Makefile