@@ -187,6 +187,8 @@ struct v4l2_subdev_io_pin_config {
* for it to be warned when the value of a control changes.
*
* @unsubscribe_event: remove event subscription from the control framework.
+ *
+ * @post_register: called after the subdevice has been registered.
*/
struct v4l2_subdev_core_ops {
int (*log_status)(struct v4l2_subdev *sd);
@@ -213,6 +215,7 @@ struct v4l2_subdev_core_ops {
struct v4l2_event_subscription *sub);
int (*unsubscribe_event)(struct v4l2_subdev *sd, struct v4l2_fh *fh,
struct v4l2_event_subscription *sub);
+ int (*post_register)(struct v4l2_subdev *sd);
};
/**
Introduce the post_register() subdevice core operation. The operation is meant to be called after the subdevice has been registered. Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org> Suggested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> --- include/media/v4l2-subdev.h | 3 +++ 1 file changed, 3 insertions(+)