projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0be618
)
Input: evdev - allow querying SW state from compat ioctl
author
Dmitry Torokhov
<dtor_core@ameritech.net>
Mon, 31 Oct 2005 06:29:37 +0000
(
01:29
-0500)
committer
Dmitry Torokhov
<dtor_core@ameritech.net>
Mon, 31 Oct 2005 06:29:37 +0000
(
01:29
-0500)
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/evdev.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/evdev.c
b/drivers/input/evdev.c
index d64d0290a7c7fe274c73a52c64f09488cd4eb787..9f2352bd8348efa34047125a4f72c181dd5d9f93 100644
(file)
--- a/
drivers/input/evdev.c
+++ b/
drivers/input/evdev.c
@@
-580,6
+580,9
@@
static long evdev_ioctl_compat(struct file *file, unsigned int cmd, unsigned lon
if (_IOC_NR(cmd) == _IOC_NR(EVIOCGSND(0)))
bit_to_user(dev->snd, SND_MAX);
+ if (_IOC_NR(cmd) == _IOC_NR(EVIOCGSW(0)))
+ bit_to_user(dev->sw, SW_MAX);
+
if (_IOC_NR(cmd) == _IOC_NR(EVIOCGNAME(0))) {
int len;
if (!dev->name) return -ENOENT;