Commit e51d0170 authored by Vojtech Pavlik's avatar Vojtech Pavlik

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: default avatarVojtech Pavlik <vojtech@suse.cz>
parent 30e3dff9
...@@ -492,6 +492,9 @@ static int hidinput_input_event(struct input_dev *dev, unsigned int type, unsign ...@@ -492,6 +492,9 @@ static int hidinput_input_event(struct input_dev *dev, unsigned int type, unsign
if (type == EV_FF) if (type == EV_FF)
return hid_ff_event(hid, dev, type, code, value); 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) { if ((offset = hid_find_field(hid, type, code, &field)) == -1) {
warn("event field not found"); warn("event field not found");
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment