diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2018-07-10 04:00:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-08-31 11:13:09 -0400 |
commit | 5f611d74c2bd89296aa045609df0e5309ff7ab41 (patch) | |
tree | a0cbd5fb28148dff19e8616a7c7e3d8ce79ab373 /block/bsg.c | |
parent | c41e9cff704a06b8cbd9eeea0fdec54fb6d13825 (diff) | |
download | linux-5f611d74c2bd89296aa045609df0e5309ff7ab41.tar.gz |
media: v4l2-ctrls: add v4l2_ctrl_request_hdl_find/put/ctrl_find functions
If a driver needs to find/inspect the controls set in a request then
it can use these functions.
E.g. to check if a required control is set in a request use this in the
req_validate() implementation:
int res = -EINVAL;
hdl = v4l2_ctrl_request_hdl_find(req, parent_hdl);
if (hdl) {
if (v4l2_ctrl_request_hdl_ctrl_find(hdl, ctrl_id))
res = 0;
v4l2_ctrl_request_hdl_put(hdl);
}
return res;
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'block/bsg.c')
0 files changed, 0 insertions, 0 deletions