linux/drivers/media/pci/cx23885
Mauro Carvalho Chehab 07ab29e116 [media] cx23885: 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:06:51 -02:00
..
altera-ci.c [media] cx23885: fix bad indentation 2015-05-01 06:28:16 -03:00
altera-ci.h treewide: remove redundant #include <linux/kconfig.h> 2016-10-11 15:06:33 -07:00
cimax2.c [media] cx23885: don't break long lines 2016-10-21 09:06:51 -02:00
cimax2.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885-417.c [media] cx23885: don't break long lines 2016-10-21 09:06:51 -02:00
cx23885-alsa.c [media] cx23885: don't break long lines 2016-10-21 09:06:51 -02:00
cx23885-av.c [media] cx23885: uninitialized variable in cx23885_av_work_handler() 2016-04-13 17:10:32 -03:00
cx23885-av.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885-cards.c [media] cx23885: don't break long lines 2016-10-21 09:06:51 -02:00
cx23885-core.c [media] cx23885: don't break long lines 2016-10-21 09:06:51 -02:00
cx23885-dvb.c [media] cx23885: don't break long lines 2016-10-21 09:06:51 -02:00
cx23885-f300.c [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
cx23885-f300.h [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
cx23885-i2c.c [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
cx23885-input.c [media] rc: split nec protocol into its three variants 2016-09-22 11:46:49 -03:00
cx23885-input.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885-ioctl.c [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885-ioctl.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885-ir.c [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885-ir.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885-reg.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885-vbi.c [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
cx23885-video.c [media] cx23885: don't break long lines 2016-10-21 09:06:51 -02:00
cx23885-video.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
cx23885.h [media] cx23885: Fix some smatch warnings 2016-09-22 13:37:06 -03:00
cx23888-ir.c [media] cx23885: don't break long lines 2016-10-21 09:06:51 -02:00
cx23888-ir.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
Kconfig [media] cx23885: add support for ViewCast 260e and 460e 2015-12-18 13:36:43 -02:00
Makefile [media] cx23885: remove btcx-risc dependency 2014-09-08 10:01:00 -03:00
netup-eeprom.c [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
netup-eeprom.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
netup-init.c [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00
netup-init.h [media] cx23885: remove FSF address as per checkpatch 2014-09-03 08:35:55 -03:00