1. 21 10月, 2016 1 次提交
    • M
      [media] dvb-usb: don't break long lines · f319ed91
      Mauro Carvalho Chehab 提交于
      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: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      f319ed91
  2. 14 10月, 2016 28 次提交
  3. 12 10月, 2016 1 次提交
  4. 22 9月, 2016 3 次提交
    • A
      [media] dvb-usb: avoid link error with dib3000m{b,c| · d0fe85e9
      Arnd Bergmann 提交于
      Tha ARM randconfig builds came up with another rare build failure
      for the dib3000mc driver, when dvb-usb-dibusb-mb is built-in and
      dib3000mc is a loadable module:
      
      ERROR: "dibusb_dib3000mc_frontend_attach" [drivers/media/usb/dvb-usb/dvb-usb-nova-t-usb2.ko] undefined!
      ERROR: "dibusb_dib3000mc_tuner_attach" [drivers/media/usb/dvb-usb/dvb-usb-nova-t-usb2.ko] undefined!
      
      Apparently this used to be a valid configuration (build-time, not
      run-time), but broke as part of a cleanup.
      
      I tried reverting the cleanup, but saw that the code was still wrong
      then. This version adds a dependency for dib3000mb, to ensure that
      dib3000mb does not force the dibusb_dib3000mc_frontend_attach function
      to be built-in when dib3000mc is a loadable module.
      
      I have also checked the two other files that were changed in the original
      cleanup, and found them to be correct in either version, so I do not
      touch that part.
      
      As this is a rather obscure bug, there is no need for backports.
      
      Fixes: 028c70ff ("[media] dvb-usb/dvb-usb-v2: use IS_ENABLED")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      d0fe85e9
    • A
      [media] dvb-usb: split out common parts of dibusb · e91455a1
      Arnd Bergmann 提交于
      Tha ARM randconfig builds came up with another rare build failure
      for the dib3000mc driver, when dvb-usb-dibusb-mb is built-in and
      dib3000mc is a loadable module:
      
      ERROR: "dibusb_dib3000mc_frontend_attach" [drivers/media/usb/dvb-usb/dvb-usb-nova-t-usb2.ko] undefined!
      ERROR: "dibusb_dib3000mc_tuner_attach" [drivers/media/usb/dvb-usb/dvb-usb-nova-t-usb2.ko] undefined!
      
      Apparently this used to be a valid configuration (build-time, not
      run-time), but broke as part of a cleanup.
      
      I tried reverting the cleanup, but saw that the code was still wrong
      then. This tries to fix the code properly, by moving the problematic
      functions into a new file that now is built as a loadable module or
      built-in, whichever is correct for a particular configuration. It fixes
      the regression as well as the runtime problem that already existed.
      
      The new module dependency chain is now:
      
         dvb-usb-{dibusb_mc,a800,dib0700,umt-010,gp8psk}   dvb-usb-dibusb-mb
               |                        |                   |          |
         dvb-usb-dibusb-mc-common       |        ___________|          |
               |               |        |        |                     |
         dib3000mc (frontend)  |        |        |         dib3000mb (frontend)
                               |        |        |
                               |        |        |
                              dvb-usb-dibusb-common
      
      I have also checked the two other files that were changed in the original
      cleanup, and found them to be correct in either version, so I do not
      touch that part.
      
      As this is a rather obscure bug, there is no need for backports.
      
      Fixes: 028c70ff ("[media] dvb-usb/dvb-usb-v2: use IS_ENABLED")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      e91455a1
    • S
      [media] rc: split nec protocol into its three variants · 2ceeca04
      Sean Young 提交于
      Currently we do not know what variant (bit length) of the nec protocol
      is used, other than from guessing from the length of the scancode. Now
      nec will be handled the same way as the sony protocol or the rc6 protocol;
      one variant per bit length.
      
      In the future we might want to expose the rc protocol type to userspace
      and we don't want to be introducing this world of pain into userspace
      too.
      Signed-off-by: NSean Young <sean@mess.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      2ceeca04
  5. 31 8月, 2016 1 次提交
  6. 24 8月, 2016 1 次提交
  7. 14 7月, 2016 1 次提交
  8. 13 7月, 2016 2 次提交
  9. 09 7月, 2016 1 次提交
  10. 21 6月, 2016 1 次提交