Skip to content

Commit

Permalink
Input: evdev - allow querying SW state from compat ioctl
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dmitry Torokhov committed Oct 31, 2005
1 parent e0be618 commit 7972720
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/input/evdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7972720

Please sign in to comment.