From: Dmitry Torokhov Date: Mon, 31 Oct 2005 06:29:23 +0000 (-0500) Subject: Input: evdev - allow querying EV_SW bits from compat_ioctl X-Git-Tag: v2.6.15-rc1~59^2~12 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e0be618d1e8ed0a1a94ee14025ec5e3022d2ec5b;p=linux-2.6-omap-h63xx.git Input: evdev - allow querying EV_SW bits from compat_ioctl Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index a4696cd0978..d64d0290a7c 100644 --- 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);