Commit 7fc48fd6 authored by Hans de Goede's avatar Hans de Goede Committed by Jiri Kosina
Browse files

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: default avatarBenjamin Tissoires <btissoir@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Reviewed-By: default avatarThomas Weißschuh <linux@weissschuh.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent a94f61e6
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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;
				}
				fallthrough;
		default:
			switch (field->physical) {
			case HID_GD_MOUSE: