linux/drivers/media/pci
Mauro Carvalho Chehab 008e6ff9b9 [media] ttpci: 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:29:43 -02:00
..
b2c2 [media] b2c2: don't break long lines 2016-10-21 08:52:14 -02:00
bt8xx [media] bt8xx: don't break long lines 2016-10-21 08:53:45 -02:00
cobalt [media] pci: constify snd_pcm_ops structures 2016-09-19 16:18:42 -03:00
cx18 [media] cx18: don't break long lines 2016-10-21 08:58:39 -02:00
cx88 [media] cx88: don't break long lines 2016-10-21 09:09:41 -02:00
cx23885 [media] cx23885: don't break long lines 2016-10-21 09:06:51 -02:00
cx25821 [media] cx25821: Remove deprecated create_singlethread_workqueue 2016-09-22 12:49:37 -03:00
ddbridge [media] ddbridge: don't break long lines 2016-10-21 09:10:07 -02:00
dm1105 [media] dm1105: don't break long lines 2016-10-21 09:10:30 -02:00
dt3155 [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
ivtv [media] ivtv: don't break long lines 2016-10-21 09:11:09 -02:00
mantis [media] mantis: Fix error handling in mantis_dma_init() 2015-08-19 07:04:55 -03:00
meye [media] meye: don't break long lines 2016-10-21 09:11:52 -02:00
netup_unidvb [media] pci: constify vb2_ops structures 2016-09-19 16:21:42 -03:00
ngene [media] constify local structures 2016-09-19 16:22:18 -03:00
pluto2 [media] media_tree: Fix spelling errors 2013-12-09 14:50:50 -02:00
pt1 [media] pt1: don't break long lines 2016-10-21 09:12:16 -02:00
pt3 [media] media: pci: pt3: don't print error when adding adapter fails 2016-08-24 13:58:46 -03:00
saa7134 [media] saa7134: don't break long lines 2016-10-21 09:15:55 -02:00
saa7146 [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
saa7164 [media] saa7164: don't break long lines 2016-10-21 09:16:51 -02:00
smipcie [media] constify local structures 2016-09-19 16:22:18 -03:00
solo6x10 [media] solo6x10: don't break long lines 2016-10-21 09:17:25 -02:00
sta2x11 [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
ttpci [media] ttpci: don't break long lines 2016-10-21 09:29:43 -02:00
tw68 [media] pci: constify vb2_ops structures 2016-09-19 16:21:42 -03:00
tw686x [media] pci: constify vb2_ops structures 2016-09-19 16:21:42 -03:00
tw5864 [media] tw5864: constify struct video_device template 2016-09-19 14:17:19 -03:00
zoran [media] zoran: convert g/s_crop to g/s_selection 2016-08-24 09:51:15 -03:00
Kconfig [media] pci: Add tw5864 driver 2016-08-24 11:17:22 -03:00
Makefile [media] pci: Add tw5864 driver 2016-08-24 11:17:22 -03:00