[PATCH 3/4] Ignore non-LED events in hid-input hidinput_event().

From: Vojtech Pavlik
Date: Wed Feb 02 2005 - 15:59:51 EST


You can pull this changeset from:
bk://kernel.bkbits.net/vojtech/for-linus

===================================================================

ChangeSet@xxxxxxxxxx, 2005-01-29 13:09:24+01:00, vojtech@xxxxxxxxxxxxx
input: Ignore non-LED events in hid-input hidinput_event(). This gets rid
of the "event field not found" message caused by EV_MSC type events.

Signed-off-by: Vojtech Pavlik <vojtech@xxxxxxx>


hid-input.c | 3 +++
1 files changed, 3 insertions(+)

===================================================================

diff -Nru a/drivers/usb/input/hid-input.c b/drivers/usb/input/hid-input.c
--- a/drivers/usb/input/hid-input.c 2005-02-02 20:29:40 +01:00
+++ b/drivers/usb/input/hid-input.c 2005-02-02 20:29:40 +01:00
@@ -492,6 +492,9 @@
if (type == EV_FF)
return hid_ff_event(hid, dev, type, code, value);

+ if (type != EV_LED)
+ return -1;
+
if ((offset = hid_find_field(hid, type, code, &field)) == -1) {
warn("event field not found");
return -1;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/