1. 31 1月, 2017 1 次提交
    • B
      [media] exynos4-is: constify v4l2_subdev_* structures · a2fafda6
      Bhumika Goyal 提交于
      v4l2_subdev_{core/pad/video}_ops structures are stored in the
      fields of the v4l2_subdev_ops structure which are of type const.
      Also, v4l2_subdev_ops structure is passed to a function
      having its argument of type const. As these structures are never
      modified, so declare them as const.
      Done using Coccinelle:(one of the scripts used)
      
      @r1 disable optional_qualifier @
      identifier i;
      position p;
      @@
      static struct v4l2_subdev_ops i@p = {...};
      
      @ok1@
      identifier r1.i;
      position p;
      expression e1;
      @@
      v4l2_subdev_init(e1,&i@p)
      
      @bad@
      position p!={r1.p,ok1.p};
      identifier r1.i;
      @@
      i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      +const
      struct v4l2_subdev_ops i;
      
      File size before:
         text	   data	    bss	    dec	    hex	filename
        16830	   1064	      0	  17894	   45e6 platform/exynos4-is/fimc-capture.o
         7787	    704	     20	   8511	   213f platform/exynos4-is/mipi-csis.o
      
      File size after:
         text	   data	    bss	    dec	    hex	filename
        17022	    880	      0	  17902	   45ee platform/exynos4-is/fimc-capture.o
         8299	    192	     20	   8511	   213f platform/exynos4-is/mipi-csis.o
      Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      a2fafda6
  2. 22 9月, 2016 1 次提交
  3. 24 6月, 2016 1 次提交
    • M
      exynos4-is: remove some unused vars · 21ed2034
      Mauro Carvalho Chehab 提交于
      Gcc 6.1 warns about some unused vars and functions. Remove them:
      
      drivers/media/platform/exynos4-is/mipi-csis.c:665:46: warning: 's5pcsis_sd_internal_ops' defined but not used [-Wunused-const-variable=]
       static const struct v4l2_subdev_internal_ops s5pcsis_sd_internal_ops = {
                                                    ^~~~~~~~~~~~~~~~~~~~~~~
      
      drivers/media/platform/exynos4-is/mipi-csis.c:652:12: warning: 's5pcsis_open' defined but not used [-Wunused-function]
       static int s5pcsis_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh)
                  ^~~~~~~~~~~~
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      21ed2034
  4. 14 4月, 2016 1 次提交
  5. 01 2月, 2016 1 次提交
  6. 11 1月, 2016 2 次提交
  7. 17 11月, 2015 1 次提交
    • M
      [media] include/media: move driver interface headers to a separate dir · d647f0b7
      Mauro Carvalho Chehab 提交于
      Let's not mix headers used by the core with those headers that
      are needed by some driver-specific interface header.
      
      The headers used on drivers were manually moved using:
          mkdir include/media/drv-intf/
          git mv include/media/cx2341x.h include/media/cx25840.h \
      	include/media/exynos-fimc.h include/media/msp3400.h \
      	include/media/s3c_camif.h include/media/saa7146.h \
      	include/media/saa7146_vv.h  include/media/sh_mobile_ceu.h \
      	include/media/sh_mobile_csi2.h include/media/sh_vou.h \
      	include/media/si476x.h include/media/soc_mediabus.h \
      	include/media/tea575x.h include/media/drv-intf/
      
      And the references for those headers were corrected using:
      
          MAIN_DIR="media/"
          PREV_DIR="media/"
          DIRS="drv-intf/"
      
          echo "Checking affected files" >&2
          for i in $DIRS; do
      	for j in $(find include/$MAIN_DIR/$i -type f -name '*.h'); do
      		 n=`basename $j`
      		git grep -l $n
      	done
          done|sort|uniq >files && (
      	echo "Handling files..." >&2;
      	echo "for i in \$(cat files|grep -v Documentation); do cat \$i | \\";
      	(
      		cd include/$MAIN_DIR;
      		for j in $DIRS; do
      			for i in $(ls $j); do
      				echo "perl -ne 's,(include [\\\"\\<])$PREV_DIR($i)([\\\"\\>]),\1$MAIN_DIR$j\2\3,; print \$_' |\\";
      			done;
      		done;
      		echo "cat > a && mv a \$i; done";
      	);
      	echo "Handling documentation..." >&2;
      	echo "for i in MAINTAINERS \$(cat files); do cat \$i | \\";
      	(
      		cd include/$MAIN_DIR;
      		for j in $DIRS; do
      			for i in $(ls $j); do
      				echo "  perl -ne 's,include/$PREV_DIR($i)\b,include/$MAIN_DIR$j\1,; print \$_' |\\";
      			done;
      		done;
      		echo "cat > a && mv a \$i; done"
      	);
          ) >script && . ./script
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      d647f0b7
  8. 02 10月, 2015 1 次提交
  9. 24 3月, 2015 1 次提交
  10. 05 12月, 2014 1 次提交
  11. 15 11月, 2014 1 次提交
  12. 20 10月, 2014 1 次提交
  13. 27 8月, 2014 2 次提交
  14. 24 5月, 2014 1 次提交
  15. 07 3月, 2014 2 次提交
  16. 03 1月, 2014 1 次提交
  17. 05 12月, 2013 1 次提交
  18. 17 10月, 2013 1 次提交
  19. 29 6月, 2013 1 次提交
  20. 21 5月, 2013 1 次提交
  21. 25 4月, 2013 1 次提交
  22. 31 3月, 2013 2 次提交
  23. 06 2月, 2013 4 次提交
  24. 26 1月, 2013 1 次提交
  25. 04 1月, 2013 1 次提交
    • G
      Drivers: media: remove __dev* attributes. · 4c62e976
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4c62e976
  26. 28 12月, 2012 1 次提交
  27. 21 12月, 2012 4 次提交
  28. 06 10月, 2012 3 次提交