1. 16 11月, 2016 2 次提交
  2. 21 10月, 2016 1 次提交
    • M
      [media] davinci: don't break long lines · ded026e0
      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>
      Acked-by: NLad, Prabhakar <prabhakar.csengg@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      ded026e0
  3. 24 8月, 2016 2 次提交
  4. 12 7月, 2016 1 次提交
  5. 09 7月, 2016 2 次提交
  6. 26 1月, 2016 1 次提交
  7. 18 12月, 2015 2 次提交
  8. 19 11月, 2015 1 次提交
  9. 21 10月, 2015 1 次提交
  10. 01 10月, 2015 1 次提交
  11. 05 6月, 2015 1 次提交
  12. 01 5月, 2015 1 次提交
  13. 03 4月, 2015 3 次提交
  14. 02 2月, 2015 1 次提交
    • A
      [media] davinci: add V4L2 dependencies · 24692801
      Arnd Bergmann 提交于
      The davinci media drivers use videobuf2, which they enable through
      a 'select' statement. If one of these drivers is built-in, but
      the v4l2 core is a loadable modules, we end up with a link
      error:
      
      drivers/built-in.o: In function `vb2_fop_mmap':
      :(.text+0x113e84): undefined reference to `video_devdata'
      drivers/built-in.o: In function `vb2_ioctl_create_bufs':
      :(.text+0x114710): undefined reference to `video_devdata'
      drivers/built-in.o: In function `vb2_ioctl_reqbufs':
      :(.text+0x114ed8): undefined reference to `video_devdata'
      drivers/built-in.o: In function `vb2_ioctl_querybuf':
      :(.text+0x115530): undefined reference to `video_devdata'
      
      To solve this, we need to add a dependency on VIDEO_V4L2,
      which enforces that the davinci drivers themselves can only
      be loadable modules if V4L2 is not built-in, and they do
      not cause the videobuf2 code to be built-in.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NLad, Prabhakar <prabhakar.csengg@gmail.com>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      24692801
  15. 02 12月, 2014 2 次提交
  16. 15 11月, 2014 1 次提交
  17. 11 11月, 2014 2 次提交
  18. 29 10月, 2014 13 次提交
  19. 20 10月, 2014 1 次提交
  20. 24 9月, 2014 1 次提交