1. 04 3月, 2016 2 次提交
    • H
      [media] v4l2-mc.h: fix yet more compiler errors · 1e89f584
      Hans Verkuil 提交于
      The newly added functions have an extra semicolon, which
      prevents compilation, and they need to be marked inline:
      
      In file included from ../include/media/tuner.h:23:0,
                       from ../drivers/media/tuners/tuner-simple.c:10:
      ../include/media/v4l2-mc.h:233:1: error: expected identifier or '(' before '{' token
      
      Remove spurious return, remove copy-and-pasted semi-colons, add static
      inline.
      
      Fixes: a77bf704 ("v4l2-mc.h: Add stubs for the V4L2 PM/pipeline routines")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      1e89f584
    • H
      [media] v4l2-mc.h: fix compiler warnings · 9532e6bb
      Hans Verkuil 提交于
      Fix these warnings when CONFIG_MEDIA_CONTROLLER is not defined:
      
      In file included from drivers/media/v4l2-core/v4l2-fh.c:32:0:
      include/media/v4l2-mc.h:173:12: warning: 'v4l_enable_media_source' defined but not used [-Wunused-function]
       static int v4l_enable_media_source(struct video_device *vdev)
                  ^
      include/media/v4l2-mc.h:183:12: warning: 'v4l_vb2q_enable_media_source' defined but not used [-Wunused-function]
       static int v4l_vb2q_enable_media_source(struct vb2_queue *q)
                  ^
      In file included from include/media/tuner.h:23:0,
                       from drivers/media/tuners/tuner-types.c:9:
      include/media/v4l2-mc.h:173:12: warning: 'v4l_enable_media_source' defined but not used [-Wunused-function]
       static int v4l_enable_media_source(struct video_device *vdev)
                  ^
      include/media/v4l2-mc.h:178:13: warning: 'v4l_disable_media_source' defined but not used [-Wunused-function]
       static void v4l_disable_media_source(struct video_device *vdev)
                   ^
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      9532e6bb
  2. 03 3月, 2016 4 次提交
  3. 27 2月, 2016 1 次提交
  4. 23 2月, 2016 1 次提交
    • M
      [media] media-device: move PCI/USB helper functions from v4l2-mc · 41b44e35
      Mauro Carvalho Chehab 提交于
      Those ancillary functions could be called even when compiled
      without V4L2 support, as warned by ktest build robot:
      
      All errors (new ones prefixed by >>):
      
      >> ERROR: "__v4l2_mc_usb_media_device_init" [drivers/media/usb/dvb-usb/dvb-usb.ko] undefined!
      >> ERROR: "__v4l2_mc_usb_media_device_init" [drivers/media/usb/dvb-usb-v2/dvb_usb_v2.ko] undefined!
      >> ERROR: "__v4l2_mc_usb_media_device_init" [drivers/media/usb/au0828/au0828.ko] undefined!
      
      Also, there's nothing there that are specific to V4L2. So, move
      those ancillary functions to MC core.
      
      No functional changes. Just function rename.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      41b44e35
  5. 16 2月, 2016 2 次提交
  6. 10 2月, 2016 2 次提交
  7. 01 2月, 2016 4 次提交