aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/evdev.c')
-rw-r--r--drivers/input/evdev.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index 1f6fcec0c6fc..55a72592704c 100644
--- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -18,7 +18,6 @@
18#include <linux/init.h> 18#include <linux/init.h>
19#include <linux/input.h> 19#include <linux/input.h>
20#include <linux/major.h> 20#include <linux/major.h>
21#include <linux/smp_lock.h>
22#include <linux/device.h> 21#include <linux/device.h>
23#include <linux/compat.h> 22#include <linux/compat.h>
24 23
@@ -512,7 +511,7 @@ static long evdev_ioctl_handler(struct file *file, unsigned int cmd,
512 511
513 if ((_IOC_NR(cmd) & ~EV_MAX) == _IOC_NR(EVIOCGBIT(0,0))) { 512 if ((_IOC_NR(cmd) & ~EV_MAX) == _IOC_NR(EVIOCGBIT(0,0))) {
514 513
515 long *bits; 514 unsigned long *bits;
516 int len; 515 int len;
517 516
518 switch (_IOC_NR(cmd) & EV_MAX) { 517 switch (_IOC_NR(cmd) & EV_MAX) {
@@ -557,7 +556,7 @@ static long evdev_ioctl_handler(struct file *file, unsigned int cmd,
557 556
558 if ((_IOC_NR(cmd) & ~ABS_MAX) == _IOC_NR(EVIOCGABS(0))) { 557 if ((_IOC_NR(cmd) & ~ABS_MAX) == _IOC_NR(EVIOCGABS(0))) {
559 558
560 int t = _IOC_NR(cmd) & ABS_MAX; 559 t = _IOC_NR(cmd) & ABS_MAX;
561 560
562 abs.value = dev->abs[t]; 561 abs.value = dev->abs[t];
563 abs.minimum = dev->absmin[t]; 562 abs.minimum = dev->absmin[t];
@@ -577,7 +576,7 @@ static long evdev_ioctl_handler(struct file *file, unsigned int cmd,
577 576
578 if ((_IOC_NR(cmd) & ~ABS_MAX) == _IOC_NR(EVIOCSABS(0))) { 577 if ((_IOC_NR(cmd) & ~ABS_MAX) == _IOC_NR(EVIOCSABS(0))) {
579 578
580 int t = _IOC_NR(cmd) & ABS_MAX; 579 t = _IOC_NR(cmd) & ABS_MAX;
581 580
582 if (copy_from_user(&abs, p, sizeof(struct input_absinfo))) 581 if (copy_from_user(&abs, p, sizeof(struct input_absinfo)))
583 return -EFAULT; 582 return -EFAULT;