1. 21 10月, 2016 1 次提交
    • M
      [media] dvb-frontends: don't break long lines · 4bd69e7b
      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>
      4bd69e7b
  2. 10 6月, 2015 1 次提交
    • M
      [media] dvb: Get rid of typedev usage for enums · 0df289a2
      Mauro Carvalho Chehab 提交于
      The DVB API was originally defined using typedefs. This is against
      Kernel CodingStyle, and there's no good usage here. While we can't
      remove its usage on userspace, we can avoid its usage in Kernelspace.
      
      So, let's do it.
      
      This patch was generated by this shell script:
      
      	for j in $(grep typedef include/uapi/linux/dvb/frontend.h |cut -d' ' -f 3); do for i in $(find drivers/media -name '*.[ch]' -type f) $(find drivers/staging/media -name '*.[ch]' -type f); do sed "s,${j}_t,enum $j," <$i >a && mv a $i; done; done
      
      While here, make CodingStyle fixes on the affected lines.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      Acked-by: Stefan Richter <stefanr@s5r6.in-berlin.de> # for drivers/media/firewire/*
      0df289a2
  3. 01 5月, 2015 1 次提交
  4. 14 8月, 2012 1 次提交
  5. 20 3月, 2012 1 次提交
  6. 05 1月, 2012 1 次提交
  7. 31 12月, 2011 3 次提交
  8. 22 9月, 2011 1 次提交
    • T
      [media] STV0288 frontend provide wider carrier search and DVB-S2 drop out. resend · 59152b1c
      tvboxspy 提交于
      The following patch provides wider carrier search.
      
      As with existing code search starts at MSB aligned. The boundary
      is widened to start at -9.  In order to save time, if no carrier is
      detected at the start it advances to the next alignment until carrier
      is found.
      
      The stv0288 will detect a DVB-S2 carrier on all steps , a
      time out of 11 steps is introduced to drop out of the loop.
      
      In stv0288_set_symbol carrier and timing loops are restored to
      default values (inittab) before setting the symbol rate on each tune. A
      slight drift was noticed with full scan in the higher IF frequencies of
      each band.
      Signed-off-by: NMalcolm Priestley <tvboxspy@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      59152b1c
  9. 20 5月, 2011 1 次提交
  10. 23 3月, 2011 1 次提交
  11. 21 10月, 2010 3 次提交
  12. 14 8月, 2009 1 次提交
  13. 13 10月, 2008 1 次提交
  14. 12 10月, 2008 1 次提交