[media] v4l: do not allow modulator ioctls for non-radio devices
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 20 Dec 2013 05:32:21 +0000 (02:32 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 5 Mar 2014 17:16:00 +0000 (14:16 -0300)
commitbfffd7431c6e7661d13c3fd141863fde55c9338b
tree78d39ebbb09b6af73f4df7425882a2130173ae89
parentc9c54f72d4a8fe02a94c345dde45f42628325223
[media] v4l: do not allow modulator ioctls for non-radio devices

Modulator ioctls could be enabled mistakenly for non-radio devices.
Currently those ioctls are only valid for radio. Fix it.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-dev.c