linux_dsm_epyc7002/drivers/media/pci/ttpci
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
..
av7110_av.c [media] dvb: modify core to implement interfaces/entities at MC new gen 2016-01-11 12:18:52 -02:00
av7110_av.h [media] av7110: don't allow negative volumes 2015-11-17 14:36:39 -02:00
av7110_ca.c [media] dvb: modify core to implement interfaces/entities at MC new gen 2016-01-11 12:18:52 -02:00
av7110_ca.h
av7110_hw.c [media] ttpci: don't break long lines 2016-10-21 09:29:43 -02:00
av7110_hw.h
av7110_ipack.c
av7110_ipack.h
av7110_ir.c proc: Supply PDE attribute setting accessor functions 2013-05-01 17:29:18 -04:00
av7110_v4l.c [media] use https://linuxtv.org for LinuxTV URLs 2015-12-04 10:38:59 -02:00
av7110.c [media] ttpci: don't break long lines 2016-10-21 09:29:43 -02:00
av7110.h [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
budget-av.c [media] ttpci: don't break long lines 2016-10-21 09:29:43 -02:00
budget-ci.c [media] ttpci: don't break long lines 2016-10-21 09:29:43 -02:00
budget-core.c [media] use https://linuxtv.org for LinuxTV URLs 2015-12-04 10:38:59 -02:00
budget-patch.c [media] ttpci: don't break long lines 2016-10-21 09:29:43 -02:00
budget.c [media] ttpci: don't break long lines 2016-10-21 09:29:43 -02:00
budget.h [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
dvb_filter.c [media] dvb_filter: use KERN_CONT where needed 2016-10-21 08:44:56 -02:00
dvb_filter.h [media] dvb-core: move dvb_filter out of the DVB core 2016-10-21 08:44:08 -02:00
Kconfig [media] media: ttpci: fix av7110 build to be compatible with CONFIG_INPUT_EVDEV 2014-08-21 15:25:38 -05:00
Makefile [media] dvb-core: move dvb_filter out of the DVB core 2016-10-21 08:44:08 -02:00
ttpci-eeprom.c [media] ttpci: don't break long lines 2016-10-21 09:29:43 -02:00
ttpci-eeprom.h