[media] lirc: wire up .compat_ioctl to main ioctl handler
authorJarod Wilson <jarod@redhat.com>
Sat, 9 Oct 2010 18:07:06 +0000 (15:07 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:18:36 +0000 (01:18 -0200)
commit8be292cc035ebc3422f08e84682626dd8ed8334b
treed9dee450677123f2f93a4dd7edb9d127d236c7e3
parenta126681810a327bee60a58ac5ad77f4518cf7a5f
[media] lirc: wire up .compat_ioctl to main ioctl handler

As pointed out (and tested) by Joris van Rantwijk, we do actually need
to wire up .compat_ioctl for 32-bit lirc userspace to work with 64-bit
lirc kernelspace. Do it. And add a check to make sure we get a valid
irctl in the ioctl handler.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ir-lirc-codec.c
drivers/media/IR/lirc_dev.c
drivers/staging/lirc/lirc_it87.c
drivers/staging/lirc/lirc_parallel.c
drivers/staging/lirc/lirc_serial.c
drivers/staging/lirc/lirc_sir.c
drivers/staging/lirc/lirc_zilog.c