summaryrefslogtreecommitdiff
path: root/linux/include/media/v4l2-device.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-03-18 12:21:25 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-18 12:21:25 -0300
commit6802e30de304059d908100b6874f246c45c47792 (patch)
tree357f49ba2ac92fe05facd95981bf51888e2afe8d /linux/include/media/v4l2-device.h
parent53c5d79124323a6862c2ec0f3c73edba4f35eb89 (diff)
parent976a91082e499203f3700aa589a54aefedc3c22a (diff)
downloadmediapointer-dvb-s2-6802e30de304059d908100b6874f246c45c47792.tar.gz
mediapointer-dvb-s2-6802e30de304059d908100b6874f246c45c47792.tar.bz2
merge: http://linuxtv.org/hg/~awalls/cx18
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/include/media/v4l2-device.h')
-rw-r--r--linux/include/media/v4l2-device.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/include/media/v4l2-device.h b/linux/include/media/v4l2-device.h
index 3d8e96f6c..0dd3e8e86 100644
--- a/linux/include/media/v4l2-device.h
+++ b/linux/include/media/v4l2-device.h
@@ -53,7 +53,11 @@ struct v4l2_device {
dev may be NULL in rare cases (ISA devices). In that case you
must fill in the v4l2_dev->name field before calling this function. */
int __must_check v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev);
-/* Set v4l2_dev->dev->driver_data to NULL and unregister all sub-devices */
+/* Set v4l2_dev->dev to NULL. Call when the USB parent disconnects.
+ Since the parent disappears this ensures that v4l2_dev doesn't have an
+ invalid parent pointer. */
+void v4l2_device_disconnect(struct v4l2_device *v4l2_dev);
+/* Unregister all sub-devices and any other resources related to v4l2_dev. */
void v4l2_device_unregister(struct v4l2_device *v4l2_dev);
/* Register a subdev with a v4l2 device. While registered the subdev module