WSL2-Linux-Kernel/drivers/media/pci/solo6x10
Mauro Carvalho Chehab 3d160041dc [media] solo6x10: 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:17:25 -02:00
..
Kconfig [media] be sure that HAS_DMA is enabled for vb2-dma-contig 2014-08-26 18:52:19 -03:00
Makefile
solo6x10-core.c [media] SOLO6x10: Remove dead code 2015-07-06 08:25:47 -03:00
solo6x10-disp.c [media] solo6x10: fix sparse warnings 2014-09-03 08:55:39 -03:00
solo6x10-eeprom.c [media] solo6x10: Fix solo_eeprom_read retval type 2015-01-27 10:03:00 -02:00
solo6x10-enc.c [media] solo6x10: s/unsigned char/u8/ 2015-01-27 10:02:07 -02:00
solo6x10-g723.c [media] pci: constify snd_pcm_ops structures 2016-09-19 16:18:42 -03:00
solo6x10-gpio.c
solo6x10-i2c.c
solo6x10-jpeg.h [media] solo6x10: s/unsigned char/u8/ 2015-01-27 10:02:07 -02:00
solo6x10-offsets.h
solo6x10-p2m.c
solo6x10-regs.h
solo6x10-tw28.c [media] solo6x10: s/uint8_t/u8/ 2015-01-27 10:03:19 -02:00
solo6x10-tw28.h
solo6x10-v4l2-enc.c [media] pci: constify vb2_ops structures 2016-09-19 16:21:42 -03:00
solo6x10-v4l2.c [media] solo6x10: don't break long lines 2016-10-21 09:17:25 -02:00
solo6x10.h [media] media/pci: convert drivers to use the new vb2_queue dev field 2016-07-08 14:37:17 -03:00