]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/media/v4l2-device.h
V4L/DVB (11021): v4l2-device: add a notify callback.
[linux-2.6-omap-h63xx.git] / include / media / v4l2-device.h
index 5d7146dc2913881bc30a34007e393b53d1478690..3d8e96f6ceb30716d29c6f6e83793e26f1aef2e8 100644 (file)
@@ -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.