summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2005-10-31 01:29:37 -0500
committerDmitry Torokhov <dtor_core@ameritech.net>2005-10-31 01:29:37 -0500
commit7972720aaa044d0bca40e2e1d4c176076a9f0e00 (patch)
treefc465e331364e6c158c74a06230d2294346b4e14 /drivers/input
parente0be618d1e8ed0a1a94ee14025ec5e3022d2ec5b (diff)
downloadop-kernel-dev-7972720aaa044d0bca40e2e1d4c176076a9f0e00.zip
op-kernel-dev-7972720aaa044d0bca40e2e1d4c176076a9f0e00.tar.gz
Input: evdev - allow querying SW state from compat ioctl
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/evdev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index d64d029..9f2352bd 100644
--- 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;
OpenPOWER on IntegriCloud