linux/drivers/media/usb/cx231xx
Mauro Carvalho Chehab ba1da97e0a [media] cx231xx: 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:39:15 -02:00
..
cx231xx-417.c [media] cx231xx: use v4l2_s_ctrl instead of the s_ctrl op 2016-07-12 11:14:27 -03:00
cx231xx-audio.c [media] usb: constify snd_pcm_ops structures 2016-09-19 16:19:10 -03:00
cx231xx-avcore.c [media] cx231xx: don't return error on success 2016-09-05 15:26:30 -03:00
cx231xx-cards.c [media] cx231xx-cards: unregister IR earlier 2016-09-05 15:26:36 -03:00
cx231xx-conf-reg.h
cx231xx-core.c [media] cx231xx: don't break long lines 2016-10-21 09:39:15 -02:00
cx231xx-dif.h
cx231xx-dvb.c [media] cx231xx: don't break long lines 2016-10-21 09:39:15 -02:00
cx231xx-i2c.c [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
cx231xx-input.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-pcb-cfg.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-pcb-cfg.h [media] cx231xx: return an error if it can't read PCB config 2014-07-27 16:57:43 -03:00
cx231xx-reg.h
cx231xx-vbi.c [media] media: usb: cx231xx: cx231xx-vbi: don't print error when allocating urb fails 2016-08-24 08:49:55 -03:00
cx231xx-vbi.h
cx231xx-video.c [media] cx231xx: get rid of CX231XX_VMUX_DEBUG 2016-02-16 08:57:41 -02:00
cx231xx.h [media] cx231xx: convert to use an explicit i2c mux core 2016-04-22 15:00:17 +02:00
Kconfig [media] cx231xx: Hauppauge HVR-955Q ATSC/QAM tuner 2015-03-03 10:36:12 -03:00
Makefile