diff options
author | Sylwester Nawrocki <sylvester.nawrocki@gmail.com> | 2013-01-22 19:01:02 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-05 15:17:16 -0200 |
commit | ffa9b9f016a9c97a3cc205d0d634b10d8f72eb36 (patch) | |
tree | a58029210df3da8c60a63d5991265f21a04ff141 /include/media/v4l2-ctrls.h | |
parent | 22fa4279eebc3fa4b3c3dc2b190158dbbafcda9f (diff) | |
download | lwn-ffa9b9f016a9c97a3cc205d0d634b10d8f72eb36.tar.gz lwn-ffa9b9f016a9c97a3cc205d0d634b10d8f72eb36.zip |
[media] V4L: Add v4l2_ctrl_subdev_log_status() helper function
This patch adds a v4l2 core helper function that can be used as
the log_status handler for subdevs that only need to log state
of the v4l2 controls owned by the subdev's control handler.
Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/v4l2-ctrls.h')
-rw-r--r-- | include/media/v4l2-ctrls.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h index 1e849461fc9d..f00d42bc01a6 100644 --- a/include/media/v4l2-ctrls.h +++ b/include/media/v4l2-ctrls.h @@ -659,4 +659,7 @@ int v4l2_subdev_s_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl); int v4l2_ctrl_subdev_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, struct v4l2_event_subscription *sub); +/* Log all controls owned by subdev's control handler. */ +int v4l2_ctrl_subdev_log_status(struct v4l2_subdev *sd); + #endif |