summaryrefslogtreecommitdiff
path: root/block/bsg.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2018-07-10 04:00:53 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-31 11:13:09 -0400
commit5f611d74c2bd89296aa045609df0e5309ff7ab41 (patch)
treea0cbd5fb28148dff19e8616a7c7e3d8ce79ab373 /block/bsg.c
parentc41e9cff704a06b8cbd9eeea0fdec54fb6d13825 (diff)
downloadlinux-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