* [PATCH] Input: evdev - allow querying EV_SW from compat_ioctl
@ 2005-10-18 6:51 Dmitry Torokhov
2005-10-18 8:30 ` Vojtech Pavlik
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Torokhov @ 2005-10-18 6:51 UTC (permalink / raw)
To: Vojtech Pavlik; +Cc: LKML, Andrew Morton
Input: evdev - allow querying EV_SW bits from compat_ioctl
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---
drivers/input/evdev.c | 1 +
1 files changed, 1 insertion(+)
Index: work/drivers/input/evdev.c
===================================================================
--- work.orig/drivers/input/evdev.c
+++ work/drivers/input/evdev.c
@@ -566,6 +566,7 @@ static long evdev_ioctl_compat(struct fi
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);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Input: evdev - allow querying EV_SW from compat_ioctl
2005-10-18 6:51 [PATCH] Input: evdev - allow querying EV_SW from compat_ioctl Dmitry Torokhov
@ 2005-10-18 8:30 ` Vojtech Pavlik
0 siblings, 0 replies; 2+ messages in thread
From: Vojtech Pavlik @ 2005-10-18 8:30 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: LKML, Andrew Morton
On Tue, Oct 18, 2005 at 01:51:46AM -0500, Dmitry Torokhov wrote:
> Input: evdev - allow querying EV_SW bits from compat_ioctl
Yup. Twas missing.
>
> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
> ---
>
> drivers/input/evdev.c | 1 +
> 1 files changed, 1 insertion(+)
>
> Index: work/drivers/input/evdev.c
> ===================================================================
> --- work.orig/drivers/input/evdev.c
> +++ work/drivers/input/evdev.c
> @@ -566,6 +566,7 @@ static long evdev_ioctl_compat(struct fi
> 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);
>
--
Vojtech Pavlik
SuSE Labs, SuSE CR
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-18 8:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-18 6:51 [PATCH] Input: evdev - allow querying EV_SW from compat_ioctl Dmitry Torokhov
2005-10-18 8:30 ` Vojtech Pavlik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®