summaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/si470x
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2011-01-08 09:53:32 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-01-19 11:45:13 -0200
commita1198ccf9c52922e66a3372b0045ebe335a127dd (patch)
tree246bd2f8cbba0b71bf63cc2c07495e7172685dda /drivers/media/radio/si470x
parent4c775902252b06673cf26a33834842f1fec3fe3e (diff)
downloadop-kernel-dev-a1198ccf9c52922e66a3372b0045ebe335a127dd.zip
op-kernel-dev-a1198ccf9c52922e66a3372b0045ebe335a127dd.tar.gz
[media] v4l2-ioctl: fix incorrect error code if VIDIOC_DBG_G/S_REGISTER are unsupported
The ioctls VIDIOC_DBG_S_REGISTER and VIDIOC_DBG_G_REGISTER should return -EINVAL if the driver didn't implement them. Currently they return -EPERM if called as non-root user. However, this check should only be done if the driver actually implemented these ioctls. Otherwise, just return -EINVAL as we do with all unimplemented ioctls. This bug make the v4l2-compliance test suite fail. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/si470x')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud