[media] media-device: Simplify compat32 logic
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 21 Mar 2016 12:19:31 +0000 (09:19 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 7 May 2016 14:52:11 +0000 (11:52 -0300)
commitf73696275e64d55c59947b42979b531cb026d718
treed40e77a1febdeecdfe0bc3eef9cba11b8ad1cda2
parent00303f9134c2db5d17bacda541c07d46517485d9
[media] media-device: Simplify compat32 logic

Only MEDIA_IOC_ENUM_LINKS32 require an special logic when
userspace is 32 bits and Kernel is 64 bits.

For the rest, media_device_ioctl() will do the right thing,
and will return -ENOIOCTLCMD if the ioctl is unknown.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-device.c