aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hidraw.c
diff options
context:
space:
mode:
authorAlan Ott <alan@signal11.us>2011-01-04 00:37:22 -0500
committerJiri Kosina <jkosina@suse.cz>2011-01-04 05:21:28 -0500
commitae5e49c79c051ea1d5ca91cbd4a0d22189067ba3 (patch)
tree06db2f9f459515ee6e2cc74721108e718d8a6afc /drivers/hid/hidraw.c
parent68229689b6dc950bea4b81dd60563884f4a7e1c5 (diff)
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 <alan@signal11.us> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hidraw.c')
-rw-r--r--drivers/hid/hidraw.c3
1 files changed, 3 insertions, 0 deletions
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 = {
344 .open = hidraw_open, 344 .open = hidraw_open,
345 .release = hidraw_release, 345 .release = hidraw_release,
346 .unlocked_ioctl = hidraw_ioctl, 346 .unlocked_ioctl = hidraw_ioctl,
347#ifdef CONFIG_COMPAT
348 .compat_ioctl = hidraw_ioctl,
349#endif
347 .llseek = noop_llseek, 350 .llseek = noop_llseek,
348}; 351};
349 352