1. 09 11月, 2010 1 次提交
    • A
      [media] v4l: kill the BKL · 0edf2e5e
      Arnd Bergmann 提交于
      All of the hard problems for BKL removal appear to be solved in the
      v4l-dvb/master tree. This removes the BKL from the various open
      functions that do not need it, or only use it to protect an
      open count.
      
      The zoran driver is nontrivial in this regard, so I introduce
      a new mutex that locks both the open/release and the ioctl
      functions. Someone with access to the hardware can probably
      improve that by using the existing lock in all cases.
      
      Finally, all drivers that still use the locked version of the
      ioctl function now get called under a new mutex instead of
      the BKL.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      0edf2e5e
  2. 03 8月, 2010 1 次提交
  3. 21 5月, 2010 1 次提交
  4. 18 5月, 2010 2 次提交
    • H
      V4L/DVB: tlg2300: remove unused #include <linux/version.h> · 4d36ec7f
      Huang Weiyi 提交于
      Remove unused #include <linux/version.h>('s) in
        drivers/media/video/tlg2300/pd-main.c
      Signed-off-by: NHuang Weiyi <weiyi.huang@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      4d36ec7f
    • M
      V4L/DVB: tlg2300: make local variables and functions static · 278a58cf
      Márton Németh 提交于
      Make the local variables and functions static. Some of them are not exported by their
      symbol name but used trough other means. For example a pointer of the operation
      structure is passed through a function call.
      
      This will remove the following sparse warnings (see "make C=1"):
       * pd-video.c:20:5: warning: symbol 'usb_transfer_mode' was not declared. Should it be static?
       * pd-video.c:621:5: warning: symbol 'fire_all_urb' was not declared. Should it be static?
       * pd-video.c:881:5: warning: symbol 'vidioc_s_std' was not declared. Should it be static?
       * pd-video.c:1024:5: warning: symbol 'vidioc_g_audio' was not declared. Should it be static?
       * pd-video.c:1033:5: warning: symbol 'vidioc_s_audio' was not declared. Should it be static?
       * pd-video.c:1193:5: warning: symbol 'usb_transfer_stop' was not declared. Should it be static?
       * pd-video.c:1522:14: warning: symbol 'pd_video_poll' was not declared. Should it be static?
       * pd-video.c:1528:9: warning: symbol 'pd_video_read' was not declared. Should it be static?
       * pd-radio.c:164:5: warning: symbol 'tlg_fm_vidioc_g_tuner' was not declared. Should it be static?
       * pd-radio.c:206:5: warning: symbol 'fm_get_freq' was not declared. Should it be static?
       * pd-radio.c:249:5: warning: symbol 'fm_set_freq' was not declared. Should it be static?
       * pd-radio.c:261:5: warning: symbol 'tlg_fm_vidioc_g_ctrl' was not declared. Should it be static?
       * pd-radio.c:267:5: warning: symbol 'tlg_fm_vidioc_g_exts_ctrl' was not declared. Should it be static?
       * pd-radio.c:288:5: warning: symbol 'tlg_fm_vidioc_s_exts_ctrl' was not declared. Should it be static?
       * pd-radio.c:315:5: warning: symbol 'tlg_fm_vidioc_s_ctrl' was not declared. Should it be static?
       * pd-radio.c:321:5: warning: symbol 'tlg_fm_vidioc_queryctrl' was not declared. Should it be static?
       * pd-radio.c:340:5: warning: symbol 'tlg_fm_vidioc_querymenu' was not declared. Should it be static?
       * pd-main.c:58:12: warning: symbol 'firmware_name' was not declared. Should it be static?
       * pd-main.c:59:19: warning: symbol 'poseidon_driver' was not declared. Should it be static?
      Signed-off-by: NMárton Németh <nm127@freemail.hu>
      Acked-by: NHuang Shijie <shijie8@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      278a58cf
  5. 27 2月, 2010 3 次提交