aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-subdev.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
index 72f49eb3002b..f5dddacf8499 100644
--- a/include/media/v4l2-subdev.h
+++ b/include/media/v4l2-subdev.h
@@ -42,6 +42,7 @@ struct v4l2_ctrl_handler;
42struct v4l2_event_subscription; 42struct v4l2_event_subscription;
43struct v4l2_fh; 43struct v4l2_fh;
44struct v4l2_subdev; 44struct v4l2_subdev;
45struct v4l2_subdev_fh;
45struct tuner_setup; 46struct tuner_setup;
46 47
47/* decode_vbi_line */ 48/* decode_vbi_line */
@@ -431,10 +432,16 @@ struct v4l2_subdev_ops {
431 * 432 *
432 * unregistered: called when this subdev is unregistered. When called the 433 * unregistered: called when this subdev is unregistered. When called the
433 * v4l2_dev field is still set to the correct v4l2_device. 434 * v4l2_dev field is still set to the correct v4l2_device.
435 *
436 * open: called when the subdev device node is opened by an application.
437 *
438 * close: called when the subdev device node is closed.
434 */ 439 */
435struct v4l2_subdev_internal_ops { 440struct v4l2_subdev_internal_ops {
436 int (*registered)(struct v4l2_subdev *sd); 441 int (*registered)(struct v4l2_subdev *sd);
437 void (*unregistered)(struct v4l2_subdev *sd); 442 void (*unregistered)(struct v4l2_subdev *sd);
443 int (*open)(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh);
444 int (*close)(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh);
438}; 445};
439 446
440#define V4L2_SUBDEV_NAME_SIZE 32 447#define V4L2_SUBDEV_NAME_SIZE 32