media: cec: move compat_ioctl handling to cec-api.c
authorArnd Bergmann <arnd@arndb.de>
Mon, 27 Aug 2018 19:56:23 +0000 (15:56 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 12 Sep 2018 15:00:51 +0000 (11:00 -0400)
All the CEC ioctls are compatible, and they are only implemented
in one driver, so we can simply let this driver handle them
natively.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/cec/cec-api.c
fs/compat_ioctl.c

index 27ae9e138b8e9bf96576e84e4ce700094c2dcc08..19170b1073fa1fa2e75a9b0717677c7cc738bfa3 100644 (file)
@@ -665,6 +665,7 @@ const struct file_operations cec_devnode_fops = {
        .owner = THIS_MODULE,
        .open = cec_open,
        .unlocked_ioctl = cec_ioctl,
+       .compat_ioctl = cec_ioctl,
        .release = cec_release,
        .poll = cec_poll,
        .llseek = no_llseek,
index e38e6c78545948f97499c640a7c14111048fb9ba..33f48933a8659d4401986080664fd5be76574bcd 100644 (file)
@@ -1195,18 +1195,6 @@ COMPATIBLE_IOCTL(VIDEO_CLEAR_BUFFER)
 COMPATIBLE_IOCTL(VIDEO_SET_STREAMTYPE)
 COMPATIBLE_IOCTL(VIDEO_SET_FORMAT)
 COMPATIBLE_IOCTL(VIDEO_GET_SIZE)
-/* cec */
-COMPATIBLE_IOCTL(CEC_ADAP_G_CAPS)
-COMPATIBLE_IOCTL(CEC_ADAP_G_LOG_ADDRS)
-COMPATIBLE_IOCTL(CEC_ADAP_S_LOG_ADDRS)
-COMPATIBLE_IOCTL(CEC_ADAP_G_PHYS_ADDR)
-COMPATIBLE_IOCTL(CEC_ADAP_S_PHYS_ADDR)
-COMPATIBLE_IOCTL(CEC_G_MODE)
-COMPATIBLE_IOCTL(CEC_S_MODE)
-COMPATIBLE_IOCTL(CEC_TRANSMIT)
-COMPATIBLE_IOCTL(CEC_RECEIVE)
-COMPATIBLE_IOCTL(CEC_DQEVENT)
-
 /* joystick */
 COMPATIBLE_IOCTL(JSIOCGVERSION)
 COMPATIBLE_IOCTL(JSIOCGAXES)