linux_dsm_epyc7002/drivers/media/pci/bt8xx
Mauro Carvalho Chehab 652fd6eaeb [media] bt8xx: 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:53:45 -02:00
..
bt848.h
bt878.c media/bt8xx: Remove old powerpc cruft 2015-03-24 13:33:50 +11:00
bt878.h media/bt8xx: Remove old powerpc cruft 2015-03-24 13:33:50 +11:00
btcx-risc.c [media] btcx-risc: use swap() in btcx_sort_clips() 2015-07-06 08:25:49 -03:00
btcx-risc.h [media] btcx-risc: move to bt8xx 2014-12-23 10:13:19 -02:00
bttv-audio-hook.c [media] bttv: fix audio hooks 2015-05-01 06:24:32 -03:00
bttv-audio-hook.h
bttv-cards.c [media] bt8xx: don't break long lines 2016-10-21 08:53:45 -02:00
bttv-driver.c [media] bt8xx: don't break long lines 2016-10-21 08:53:45 -02:00
bttv-gpio.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttv-i2c.c [media] bt8xx: don't break long lines 2016-10-21 08:53:45 -02:00
bttv-if.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttv-input.c [media] bt8xx: don't break long lines 2016-10-21 08:53:45 -02:00
bttv-risc.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttv-vbi.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttv.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttvp.h [media] bttv: convert g/s_crop to g/s_selection 2016-08-24 09:48:22 -03:00
dst_ca.c [media] bt8xx: remove needless module refcounting 2016-07-08 16:16:53 -03:00
dst_ca.h
dst_common.h [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
dst_priv.h
dst.c [media] dvb_frontend: pass the props cache to get_frontend() as arg 2016-02-04 16:27:30 -02:00
dvb-bt8xx.c [media] media: bt8xx: constify sp887x_config structure 2016-02-01 07:58:47 -02:00
dvb-bt8xx.h
Kconfig [media] bttv: Convert to generic TEA575x interface 2015-01-27 10:13:19 -02:00
Makefile [media] btcx-risc: move to bt8xx 2014-12-23 10:13:19 -02:00