diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2018-02-02 08:05:23 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-02-26 09:32:59 -0500 |
commit | 3103c7b4ad08d813ec5c8187f7a9ddea55acf027 (patch) | |
tree | f18c5f8418e9c12e37e941b25712dd858d1a5ecc /init | |
parent | 1ceda32bf3f2f5542af805a70c6b59123e3c76c9 (diff) | |
download | linux-3103c7b4ad08d813ec5c8187f7a9ddea55acf027.tar.gz linux-3103c7b4ad08d813ec5c8187f7a9ddea55acf027.tar.bz2 linux-3103c7b4ad08d813ec5c8187f7a9ddea55acf027.zip |
media: v4l2-subdev: without controls return -ENOTTY
If the subdev did not define any controls, then return -ENOTTY if
userspace attempts to call these ioctls.
The control framework functions will return -EINVAL, not -ENOTTY if
vfh->ctrl_handler is NULL.
Several of these framework functions are also called directly from
drivers, so I don't want to change the error code there.
Found with vimc and v4l2-compliance.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions