linux/drivers/media/video
Hans Verkuil bedf8bcf6b [media] v4l2-device: add kref and a release function
The video_device struct has proper ref counting and its release function
will be called when the last user releases it. But no such support was
available for struct v4l2_device. This made it hard to determine when a
USB driver can release the device if it has multiple device nodes.

With one device node it is easy of course, since when the device node is
released, the whole device can be released.

This patch adds refcounting to v4l2_device. When registering device nodes
the v4l2_device refcount will be increased, when releasing device nodes
it will be decreased. The (optional) release function will be called when
the last device node was released.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-03-22 16:38:05 -03:00
..
au0828 [media] several drivers: Fix a few gcc 4.6 warnings 2011-03-22 04:54:05 -03:00
bt8xx [media] several drivers: Fix a few gcc 4.6 warnings 2011-03-22 04:54:05 -03:00
cpia2 [media] v4l2-ioctl: add priority handling support 2011-03-22 16:37:59 -03:00
cx18 [media] cx18: use core priority handling 2011-03-22 16:38:04 -03:00
cx88 [media] cx88-alsa: fix compiler warning 2011-03-22 04:54:03 -03:00
cx231xx [media] drivers:media:cx231xx.h remove one to many l's in the word 2011-03-21 20:32:41 -03:00
cx23885 [media] Force xc5000 firmware loading for NetUP Dual DVB-T/C CI RF card 2011-03-22 04:54:12 -03:00
cx25840 [media] cx25840: fix probing of cx2583x chips 2011-03-02 13:45:33 -03:00
davinci [media] v4l2-ioctl: add priority handling support 2011-03-22 16:37:59 -03:00
em28xx [media] em28xx: properly handle subdev controls 2011-03-21 20:32:04 -03:00
et61x251 [media] et61x251: remove wrongly claimed usb ids 2011-01-19 11:45:01 -02:00
gspca [media] gspca - nw80x: New subdriver for Divio based webcams 2011-03-22 04:54:51 -03:00
hdpvr [media] hdpvr: fix up i2c device registration 2011-01-31 12:18:04 -02:00
ivtv [media] ivtv: convert to core priority handling 2011-03-22 16:38:01 -03:00
omap Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2011-01-13 10:05:56 -08:00
omap3isp [media] omap3isp: Add set performance callback in isp platform data 2011-03-22 04:53:55 -03:00
pvrusb2 [media] pvrusb2: check kmalloc return value 2011-03-22 04:54:37 -03:00
pwc [media] v4l2-ioctl: add priority handling support 2011-03-22 16:37:59 -03:00
s5p-fimc [media] s5p-fimc: Fix G_FMT ioctl handler 2011-03-22 04:54:20 -03:00
saa7134 [media] saa7134-input: key up events not sent after suspend/resume 2011-03-22 16:37:53 -03:00
saa7164 [media] video/saa7164: Fix sparse warning: Using plain integer as NULL pointer 2011-03-21 20:32:19 -03:00
sn9c102 [media] video: sn9c102: world-wirtable sysfs files 2011-03-21 20:32:21 -03:00
tlg2300 [media] drivers/media/video/tlg2300/pd-video.c: Remove second mutex_unlock in pd_vidioc_s_fmt 2011-03-22 06:51:57 -03:00
usbvision [media] usbvision: coding style 2010-12-30 08:02:09 -02:00
uvc [media] uvcvideo: Fix descriptor parsing for video output devices 2011-03-22 06:51:48 -03:00
zoran [media] zoran: use video_device_alloc instead of kmalloc 2011-01-19 11:52:12 -02:00
adv7170.c
adv7175.c [media] adv7175: support s_power 2011-01-19 11:45:55 -02:00
adv7180.c
adv7343_regs.h [media] adv7343: use control framework 2011-03-21 20:31:49 -03:00
adv7343.c [media] adv7343: use control framework 2011-03-21 20:31:49 -03:00
ak881x.c
arv.c
bt819.c [media] bt819: use control framework 2011-03-21 20:31:49 -03:00
bt856.c
bt866.c
btcx-risc.c
btcx-risc.h
bw-qcam.c
c-qcam.c
cafe_ccic-regs.h
cafe_ccic.c [media] v4l2-subdev: remove core.s_config and v4l2_i2c_new_subdev_cfg() 2011-01-19 11:45:30 -02:00
cs53l32a.c
cs5345.c [media] cs5345: use the control framework 2011-03-21 20:31:49 -03:00
cs8420.h
cx2341x.c [media] v4l2-ctrls: use const char * const * for the menu arrays 2010-12-30 08:02:14 -02:00
fsl-viu.c [media] fsl_viu: add VIDIOC_QUERYSTD and VIDIOC_G_STD support 2010-12-29 08:17:16 -02:00
hexium_gemini.c [media] v4l: fix handling of v4l2_input.capabilities 2010-12-30 08:02:29 -02:00
hexium_orion.c [media] v4l: fix handling of v4l2_input.capabilities 2010-12-30 08:02:29 -02:00
ibmmpeg2.h
imx074.c [media] i2c: Remove obsolete cleanup for clientdata 2010-12-29 08:16:47 -02:00
indycam.c
indycam.h
ir-kbd-i2c.c [media] ir-kbd-i2c: improve remote behavior with z8 behind usb 2011-01-31 12:19:15 -02:00
Kconfig [media] omap3isp: Kconfig and Makefile 2011-03-22 04:53:54 -03:00
ks0127.c
ks0127.h
m52790.c
Makefile [media] omap3isp: Kconfig and Makefile 2011-03-22 04:53:54 -03:00
mem2mem_testdev.c [media] Update Pawel Osciak's e-mail address 2011-03-22 04:55:05 -03:00
meye.c [media] v4l2-ioctl: add priority handling support 2011-03-22 16:37:59 -03:00
meye.h
msp3400-driver.c
msp3400-driver.h
msp3400-kthreads.c
mt9m001.c [media] v4l: Rename V4L2_MBUS_FMT_GREY8_1X8 to V4L2_MBUS_FMT_Y8_1X8 2011-03-22 04:53:23 -03:00
mt9m111.c [media] media: video: do not clear 'driver' from an i2c_client 2010-12-29 08:16:47 -02:00
mt9t031.c [media] media: video: do not clear 'driver' from an i2c_client 2010-12-29 08:16:47 -02:00
mt9t112.c
mt9v011.c [media] v4l2-subdev: remove core.s_config and v4l2_i2c_new_subdev_cfg() 2011-01-19 11:45:30 -02:00
mt9v022.c [media] v4l: Rename V4L2_MBUS_FMT_GREY8_1X8 to V4L2_MBUS_FMT_Y8_1X8 2011-03-22 04:53:23 -03:00
mx1_camera.c [media] v4l: soc-camera: switch to .unlocked_ioctl 2010-12-30 22:29:26 -02:00
mx2_camera.c [media] v4l: soc-camera: switch to .unlocked_ioctl 2010-12-30 22:29:26 -02:00
mx3_camera.c [media] V4L: mx3_camera: convert to videobuf2 2011-03-21 20:32:15 -03:00
mxb.c [media] v4l2-ioctl: add priority handling support 2011-03-22 16:37:59 -03:00
mxb.h
noon010pc30.c [media] Add v4l2 subdev driver for NOON010PC30L image sensor 2011-03-21 20:31:40 -03:00
omap1_camera.c [media] V4L: omap1_camera: join split format lines 2011-03-21 20:32:14 -03:00
omap24xxcam-dma.c
omap24xxcam.c [media] omap24xxcam: Fix compilation 2011-03-21 20:32:19 -03:00
omap24xxcam.h
ov772x.c [media] v4l: ov772x: simplify pointer dereference 2010-12-30 22:29:23 -02:00
ov2640.c [media] V4L2: Add a v4l2-subdev (soc-camera) driver for OmniVision OV2640 sensor 2010-12-30 22:29:34 -02:00
ov6650.c [media] v4l: Rename V4L2_MBUS_FMT_GREY8_1X8 to V4L2_MBUS_FMT_Y8_1X8 2011-03-22 04:53:23 -03:00
ov7670.c [media] v4l2-subdev: remove core.s_config and v4l2_i2c_new_subdev_cfg() 2011-01-19 11:45:30 -02:00
ov7670.h
ov9640.c [media] ov9640: fix OmniVision OV9640 sensor driver's priv data retrieving 2010-12-30 22:29:21 -02:00
ov9640.h
ov9740.c [media] V4L: Initial submit of OV9740 driver 2011-03-21 20:32:16 -03:00
pms.c
pxa_camera.c [media] v4l: soc-camera: switch to .unlocked_ioctl 2010-12-30 22:29:26 -02:00
rj54n1cb0c.c [media] media: video: do not clear 'driver' from an i2c_client 2010-12-29 08:16:47 -02:00
s2255drv.c [media] s2255drv: firmware re-loading changes 2011-02-02 11:13:37 -02:00
saa711x_regs.h
saa717x.c
saa6588.c [media] saa6588: rename rds.h to saa6588.h 2010-12-29 08:17:18 -02:00
saa7110.c [media] saa7110: use control framework 2011-03-21 20:31:50 -03:00
saa7115.c [media] fix saa7111 non-detection 2011-01-31 14:19:50 -02:00
saa7121.h
saa7127.c
saa7146.h
saa7146reg.h
saa7185.c
saa7191.c
saa7191.h
sh_mobile_ceu_camera.c [media] V4l: sh_mobile_ceu_camera: fix cropping offset calculation 2011-03-21 20:32:15 -03:00
sh_mobile_csi2.c [media] v4l: Rename V4L2_MBUS_FMT_GREY8_1X8 to V4L2_MBUS_FMT_Y8_1X8 2011-03-22 04:53:23 -03:00
sh_vou.c
soc_camera_platform.c
soc_camera.c [media] V4L: soc-camera: extend to also support videobuf2 2011-03-21 20:32:15 -03:00
soc_mediabus.c [media] v4l: Rename V4L2_MBUS_FMT_GREY8_1X8 to V4L2_MBUS_FMT_Y8_1X8 2011-03-22 04:53:23 -03:00
sr030pc30.c [media] v4l2-subdev: remove core.s_config and v4l2_i2c_new_subdev_cfg() 2011-01-19 11:45:30 -02:00
stk-sensor.c
stk-webcam.c [media] stk-webcam: remove V4L1 compatibility code, replace with V4L2 controls 2010-12-29 08:17:09 -02:00
stk-webcam.h
tcm825x.c
tcm825x.h
tda7432.c
tda9840.c
tea6415c.c [media] tea6415c: return -EIO if i2c_check_functionality fails 2010-12-29 08:16:39 -02:00
tea6415c.h
tea6420.c
tea6420.h
ths7303.c
timblogiw.c [media] timblogiw: fix compile warning 2010-12-30 08:02:35 -02:00
tlv320aic23b.c [media] tlv320aic23b: use control framework 2011-03-21 20:31:50 -03:00
tuner-core.c [media] tuner-core: Don't touch at standby during tuner_lookup 2011-03-21 20:32:03 -03:00
tvaudio.c
tveeprom.c
tvp514x_regs.h
tvp514x.c [media] tvp514x: use the control framework 2011-03-21 20:31:50 -03:00
tvp5150_reg.h
tvp5150.c [media] tvp5150: device detection should be done only once 2011-03-21 20:32:04 -03:00
tvp7002_reg.h
tvp7002.c [media] tvp7002: use control framework 2011-03-21 20:31:50 -03:00
tw9910.c
upd64031a.c
upd64083.c
v4l2-common.c [media] v4l2_prio: move from v4l2-common to v4l2-dev 2011-03-22 16:37:54 -03:00
v4l2-compat-ioctl32.c [media] v4l: removal of old, obsolete ioctls 2011-03-21 20:32:12 -03:00
v4l2-ctrls.c [media] v4l2-ctrls: Fix control enumeration for multiple subdevs with ctrl 2011-03-21 20:32:04 -03:00
v4l2-dev.c [media] v4l2-device: add kref and a release function 2011-03-22 16:38:05 -03:00
v4l2-device.c [media] v4l2-device: add kref and a release function 2011-03-22 16:38:05 -03:00
v4l2-event.c
v4l2-fh.c [media] v4l2-fh: add v4l2_fh_is_singular 2011-03-22 16:37:58 -03:00
v4l2-int-device.c
v4l2-ioctl.c [media] v4l2-ioctl: add priority handling support 2011-03-22 16:37:59 -03:00
v4l2-mem2mem.c [media] Update Pawel Osciak's e-mail address 2011-03-22 04:55:05 -03:00
v4l2-subdev.c [media] v4l: subdev: Generic ioctl support 2011-03-22 04:53:45 -03:00
via-camera.c [media] via-camera: Fix OLPC serial check 2011-03-22 16:37:49 -03:00
via-camera.h
videobuf2-core.c [media] vb2: Handle return value from start_streaming callback 2011-03-22 04:55:08 -03:00
videobuf2-dma-contig.c [media] Update Pawel Osciak's e-mail address 2011-03-22 04:55:05 -03:00
videobuf2-dma-sg.c [media] v4l2: vb2-dma-sg: fix potential security hole 2011-03-22 04:54:30 -03:00
videobuf2-memops.c [media] Update Pawel Osciak's e-mail address 2011-03-22 04:55:05 -03:00
videobuf2-vmalloc.c [media] Update Pawel Osciak's e-mail address 2011-03-22 04:55:05 -03:00
videobuf-core.c [media] V4L: remove V4L1 compatibility mode 2010-12-29 08:17:07 -02:00
videobuf-dma-contig.c [media] V4L: videobuf, don't use dma addr as physical 2011-03-22 06:51:54 -03:00
videobuf-dma-sg.c [media] videobuf-dma-sg: remove obsolete comments 2010-12-29 08:17:07 -02:00
videobuf-dvb.c
videobuf-vmalloc.c
vino.c [media] v4l: fix handling of v4l2_input.capabilities 2010-12-30 08:02:29 -02:00
vino.h
vivi.c [media] vivi: fix compiler warning 2011-03-21 20:31:51 -03:00
vp27smpx.c
vpx3220.c [media] vpx3220: use control framework 2011-03-21 20:31:50 -03:00
w9966.c [media] w9966: zero device state after a detach 2011-01-19 11:52:11 -02:00
wm8739.c
wm8775.c [media] Add proper audio support for Nova-S Plus with wm8775 ADC 2011-03-21 20:32:19 -03:00
zr364xx.c