summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorDafna Hirschfeld <dafna3@gmail.com>2019-03-07 00:13:26 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-03-25 20:29:52 +0300
commit09ca38a50795a263d2b16dc95794dc5bc17c1d5c (patch)
treeb870271c387b22c199702269e98d3404f123bb66 /include/media
parent4d10452cd1ed619d95fde81cef837069f4c754cd (diff)
downloadlinux-09ca38a50795a263d2b16dc95794dc5bc17c1d5c.tar.xz
media: v4l2-ctrl: v4l2_ctrl_request_setup returns with error upon failure
If one of the controls fails to set, then 'v4l2_ctrl_request_setup' immediately returns with the error code. Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com> Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-ctrls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h
index e5cae37ced2d..200f8a66ecaa 100644
--- a/include/media/v4l2-ctrls.h
+++ b/include/media/v4l2-ctrls.h
@@ -1127,7 +1127,7 @@ __poll_t v4l2_ctrl_poll(struct file *file, struct poll_table_struct *wait);
* applying control values in a request is only applicable to memory-to-memory
* devices.
*/
-void v4l2_ctrl_request_setup(struct media_request *req,
+int v4l2_ctrl_request_setup(struct media_request *req,
struct v4l2_ctrl_handler *parent);
/**