summaryrefslogtreecommitdiff
path: root/linux/include/media/v4l2-device.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-03-08 21:02:10 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2009-03-08 21:02:10 +0100
commit3d3fd89aabd81c1e33baf3dcf16329457cd82c77 (patch)
tree796ab96b90893424381daa2b874058a3ef5d94df /linux/include/media/v4l2-device.h
parent1bd1aedc7af71728404f5d7b059dd8ca52d01f9f (diff)
downloadmediapointer-dvb-s2-3d3fd89aabd81c1e33baf3dcf16329457cd82c77.tar.gz
mediapointer-dvb-s2-3d3fd89aabd81c1e33baf3dcf16329457cd82c77.tar.bz2
v4l2-device: add a notify callback.
From: Hans Verkuil <hverkuil@xs4all.nl> Add a notify callback to v4l2_device to let sub-devices notify their parent of special events. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/include/media/v4l2-device.h')
-rw-r--r--linux/include/media/v4l2-device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/include/media/v4l2-device.h b/linux/include/media/v4l2-device.h
index 5d7146dc2..3d8e96f6c 100644
--- a/linux/include/media/v4l2-device.h
+++ b/linux/include/media/v4l2-device.h
@@ -44,6 +44,9 @@ struct v4l2_device {
spinlock_t lock;
/* unique device name, by default the driver name + bus ID */
char name[V4L2_DEVICE_NAME_SIZE];
+ /* notify callback called by some sub-devices. */
+ void (*notify)(struct v4l2_subdev *sd,
+ unsigned int notification, void *arg);
};
/* Initialize v4l2_dev and make dev->driver_data point to v4l2_dev.