media: v4l2-ctrls: return -EACCES if request wasn't completed
authorHans Verkuil <hansverk@cisco.com>
Thu, 23 Aug 2018 10:33:49 +0000 (06:33 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 11 Sep 2018 13:46:41 +0000 (09:46 -0400)
commitb6b84557eca71ae0631be1567fec85870a2c1b93
tree467c9aab7d502f17d8388540f20bb237d68d93bf
parent34b41472465b1b5a2c6c63255431fb2c1a450af1
media: v4l2-ctrls: return -EACCES if request wasn't completed

For now (this might be relaxed in the future) we do not allow getting
controls from a request that isn't completed. In that case we return
-EACCES. Update the documentation accordingly.

Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Documentation/media/uapi/v4l/vidioc-g-ext-ctrls.rst
drivers/media/v4l2-core/v4l2-ctrls.c