提交 7fc48fd6 编写于 作者: H Hans de Goede 提交者: Jiri Kosina

HID: input: Fix parsing of HID_CP_CONSUMER_CONTROL fields

Fix parsing of HID_CP_CONSUMER_CONTROL fields which are not in
the HID_CP_PROGRAMMABLEBUTTONS collection.

Fixes: bcfa8d14 ("HID: input: Add support for Programmable Buttons")
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=2018096
Cc: Thomas Weißschuh <linux@weissschuh.net>
Suggested-by: NBenjamin Tissoires <btissoir@redhat.com>
Signed-off-by: NHans de Goede <hdegoede@redhat.com>
Reviewed-By: NThomas Weißschuh <linux@weissschuh.net>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 a94f61e6
......@@ -650,10 +650,9 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
code += KEY_MACRO1;
else
code += BTN_TRIGGER_HAPPY - 0x1e;
} else {
goto ignore;
break;
}
break;
fallthrough;
default:
switch (field->physical) {
case HID_GD_MOUSE:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册