From: Dmitry Torokhov Date: Mon, 31 Oct 2005 06:29:37 +0000 (-0500) Subject: Input: evdev - allow querying SW state from compat ioctl X-Git-Tag: accepted/tizen/common/20141203.182822~41711^2~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7972720aaa044d0bca40e2e1d4c176076a9f0e00;p=platform%2Fkernel%2Flinux-arm64.git Input: evdev - allow querying SW state from compat ioctl Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index d64d029..9f2352b 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;