projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2f2e58
)
Input: evdev - allow querying EV_SW bits from compat_ioctl
author
Dmitry Torokhov
<dtor_core@ameritech.net>
Mon, 31 Oct 2005 06:29:23 +0000
(
01:29
-0500)
committer
Dmitry Torokhov
<dtor_core@ameritech.net>
Mon, 31 Oct 2005 06:29:23 +0000
(
01:29
-0500)
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/evdev.c
patch
|
blob
|
history
diff --git
a/drivers/input/evdev.c
b/drivers/input/evdev.c
index a4696cd0978ca68c436ad37ceaa66252b4464b68..d64d0290a7c7fe274c73a52c64f09488cd4eb787 100644
(file)
--- a/
drivers/input/evdev.c
+++ b/
drivers/input/evdev.c
@@
-565,6
+565,7
@@
static long evdev_ioctl_compat(struct file *file, unsigned int cmd, unsigned lon
case EV_LED: bits = dev->ledbit; max = LED_MAX; break;
case EV_SND: bits = dev->sndbit; max = SND_MAX; break;
case EV_FF: bits = dev->ffbit; max = FF_MAX; break;
+ case EV_SW: bits = dev->swbit; max = SW_MAX; break;
default: return -EINVAL;
}
bit_to_user(bits, max);