1. 11 1月, 2016 3 次提交
    • M
      [media] uapi/media.h: Rename entities types to functions · 4ca72efa
      Mauro Carvalho Chehab 提交于
      Rename the userspace types from MEDIA_ENT_T_ to MEDIA_ENT_F_
      and add the backward compatibility bits.
      
      The changes at the .c files was generated by the following
      coccinelle script:
      
      @@
      @@
      -MEDIA_ENT_T_UNKNOWN
      +MEDIA_ENT_F_UNKNOWN
      @@
      @@
      -MEDIA_ENT_T_DVB_BASE
      +MEDIA_ENT_F_DVB_BASE
      @@
      @@
      -MEDIA_ENT_T_V4L2_BASE
      +MEDIA_ENT_F_V4L2_BASE
      @@
      @@
      -MEDIA_ENT_T_V4L2_SUBDEV_BASE
      +MEDIA_ENT_F_V4L2_SUBDEV_BASE
      @@
      @@
      -MEDIA_ENT_T_CONNECTOR_BASE
      +MEDIA_ENT_F_CONNECTOR_BASE
      @@
      @@
      -MEDIA_ENT_T_V4L2_VIDEO
      +MEDIA_ENT_F_IO_V4L
      @@
      @@
      -MEDIA_ENT_T_V4L2_VBI
      +MEDIA_ENT_F_IO_VBI
      @@
      @@
      -MEDIA_ENT_T_V4L2_SWRADIO
      +MEDIA_ENT_F_IO_SWRADIO
      @@
      @@
      -MEDIA_ENT_T_V4L2_SUBDEV_UNKNOWN
      +MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN
      @@
      @@
      -MEDIA_ENT_T_CONN_RF
      +MEDIA_ENT_F_CONN_RF
      @@
      @@
      -MEDIA_ENT_T_CONN_SVIDEO
      +MEDIA_ENT_F_CONN_SVIDEO
      @@
      @@
      -MEDIA_ENT_T_CONN_COMPOSITE
      +MEDIA_ENT_F_CONN_COMPOSITE
      @@
      @@
      -MEDIA_ENT_T_CONN_TEST
      +MEDIA_ENT_F_CONN_TEST
      @@
      @@
      -MEDIA_ENT_T_V4L2_SUBDEV_SENSOR
      +MEDIA_ENT_F_CAM_SENSOR
      @@
      @@
      -MEDIA_ENT_T_V4L2_SUBDEV_FLASH
      +MEDIA_ENT_F_FLASH
      @@
      @@
      -MEDIA_ENT_T_V4L2_SUBDEV_LENS
      +MEDIA_ENT_F_LENS
      @@
      @@
      -MEDIA_ENT_T_V4L2_SUBDEV_DECODER
      +MEDIA_ENT_F_ATV_DECODER
      @@
      @@
      -MEDIA_ENT_T_V4L2_SUBDEV_TUNER
      +MEDIA_ENT_F_TUNER
      @@
      @@
      -MEDIA_ENT_T_DVB_DEMOD
      +MEDIA_ENT_F_DTV_DEMOD
      @@
      @@
      -MEDIA_ENT_T_DVB_DEMUX
      +MEDIA_ENT_F_TS_DEMUX
      @@
      @@
      -MEDIA_ENT_T_DVB_TSOUT
      +MEDIA_ENT_F_IO_DTV
      @@
      @@
      -MEDIA_ENT_T_DVB_CA
      +MEDIA_ENT_F_DTV_CA
      @@
      @@
      -MEDIA_ENT_T_DVB_NET_DECAP
      +MEDIA_ENT_F_DTV_NET_DECAP
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      4ca72efa
    • M
      [media] media-entity.h: rename entity.type to entity.function · 0e576b76
      Mauro Carvalho Chehab 提交于
      Entities should have one or more functions. Calling it as a
      type proofed to not be correct, as an entity could eventually
      have more than one type.
      
      So, rename the field as function.
      
      Please notice that this patch doesn't extend support for
      multiple function entities. Such change will happen when
      we have real case drivers using it.
      
      No functional changes.
      Acked-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      0e576b76
    • M
      [media] media: get rid of unused "extra_links" param on media_entity_init() · 18095107
      Mauro Carvalho Chehab 提交于
      Currently, media_entity_init() creates an array with the links,
      allocated at init time. It provides a parameter (extra_links)
      that would allocate more links than the current needs, but this
      is not used by any driver.
      
      As we want to be able to do dynamic link allocation/removal,
      we'll need to change the implementation of the links. So,
      before doing that, let's first remove that extra unused
      parameter, in order to cleanup the interface first.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com>
      Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      18095107
  2. 17 11月, 2015 1 次提交
    • M
      [media] include/media: split I2C headers from V4L2 core · b5dcee22
      Mauro Carvalho Chehab 提交于
      Currently, include/media is messy, as it contains both the V4L2 core
      headers and some driver-specific headers on the same place. That makes
      harder to identify what core headers should be documented and what
      headers belong to I2C drivers that are included only by bridge/main
      drivers that would require the functions provided by them.
      
      Let's move those i2c specific files to its own subdirectory.
      
      The files to move were produced via the following script:
      	mkdir include/media/i2c
      	(cd include/media; for i in *.h; do n=`echo $i|sed s/.h$/.c/`; if [ -e ../../drivers/media/i2c/$n ]; then echo $i; git mv $i i2c/; fi; done)
      	(cd include/media; for i in *.h; do n=`echo $i|sed s/.h$/.c/`; if [ -e ../../drivers/media/*/i2c/$n ]; then echo $i; git mv $i i2c/; fi; done)
      	for i in include/media/*.h; do n=`basename $i`;  (for j in $(git grep -l $n); do dirname $j; done)|sort|uniq|grep -ve '^.$' > list; num=$(wc -l list|cut -d' ' -f1); if [ $num == 1 ]; then if [ "`grep i2c list`" != "" ]; then git mv $i include/media/i2c; fi; fi; done
      
      And the references corrected via this script:
          MAIN_DIR="media/"
          PREV_DIR="media/"
          DIRS="i2c/"
      
          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
      
      Merged Sakari Ailus patch that moves smiapp.h to include/media/i2c.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      b5dcee22
  3. 24 3月, 2015 1 次提交
  4. 23 12月, 2014 1 次提交
    • H
      [media] m5mols: fix sparse warnings · d3acd83e
      Hans Verkuil 提交于
      drivers/media/i2c/m5mols/m5mols_core.c:128:24: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:128:24: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:128:24: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:128:24: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:130:24: warning: cast to restricted __be32
      drivers/media/i2c/m5mols/m5mols_core.c:130:24: warning: cast to restricted __be32
      drivers/media/i2c/m5mols/m5mols_core.c:130:24: warning: cast to restricted __be32
      drivers/media/i2c/m5mols/m5mols_core.c:130:24: warning: cast to restricted __be32
      drivers/media/i2c/m5mols/m5mols_core.c:130:24: warning: cast to restricted __be32
      drivers/media/i2c/m5mols/m5mols_core.c:130:24: warning: cast to restricted __be32
      drivers/media/i2c/m5mols/m5mols_core.c:457:19: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:457:19: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:457:19: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:457:19: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:458:19: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:458:19: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:458:19: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:458:19: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:459:22: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:459:22: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:459:22: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:459:22: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:460:20: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:460:20: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:460:20: warning: cast to restricted __be16
      drivers/media/i2c/m5mols/m5mols_core.c:460:20: warning: cast to restricted __be16
      
      The be16_to_cpu conversions in m5mols_get_version() are not needed since the
      data is already using cpu endianness. This was never noticed since these
      version fields are never used.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Acked-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      d3acd83e
  5. 15 11月, 2014 1 次提交
  6. 21 5月, 2013 5 次提交
  7. 22 3月, 2013 1 次提交
  8. 06 1月, 2013 1 次提交
  9. 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
  10. 06 10月, 2012 1 次提交
  11. 02 10月, 2012 3 次提交
  12. 14 9月, 2012 1 次提交
  13. 16 8月, 2012 1 次提交
  14. 15 5月, 2012 1 次提交
  15. 08 3月, 2012 2 次提交
  16. 31 12月, 2011 11 次提交
  17. 11 12月, 2011 1 次提交
  18. 25 11月, 2011 1 次提交
  19. 01 11月, 2011 1 次提交
  20. 24 9月, 2011 1 次提交
  21. 28 7月, 2011 1 次提交