From: Alan Ott Date: Tue, 4 Jan 2011 05:37:22 +0000 (-0500) Subject: HID: hidraw: add compatibility ioctl() for 32-bit applications. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ae5e49c79c051ea1d5ca91cbd4a0d22189067ba3;p=linux-beck.git HID: hidraw: add compatibility ioctl() for 32-bit applications. Added the ioctl function to the compat_ioctl pointer in the file_operations struct. Before this, some ioctls would fail for 32-bit apps on 64-bit systems. Signed-off-by: Alan Ott Acked-by: Arnd Bergmann Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index 68d087f63c02..468e87b53ed2 100644 --- a/drivers/hid/hidraw.c +++ b/drivers/hid/hidraw.c @@ -344,6 +344,9 @@ static const struct file_operations hidraw_ops = { .open = hidraw_open, .release = hidraw_release, .unlocked_ioctl = hidraw_ioctl, +#ifdef CONFIG_COMPAT + .compat_ioctl = hidraw_ioctl, +#endif .llseek = noop_llseek, };