]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
HID: asus: Filter keyboard EC for old ROG keyboard
authorLuke D Jones <luke@ljones.dev>
Thu, 18 Feb 2021 21:38:46 +0000 (10:38 +1300)
committerJiri Kosina <jkosina@suse.cz>
Wed, 5 May 2021 12:22:38 +0000 (14:22 +0200)
Older ROG keyboards emit a similar stream of bytes to the new
N-Key keyboards and require filtering to prevent a lot of
unmapped key warnings showing. As all the ROG keyboards use
QUIRK_USE_KBD_BACKLIGHT this is now used to branch to filtering
in asus_raw_event.

Signed-off-by: Luke D Jones <luke@ljones.dev>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-asus.c

index 2ab22b92594182816883da368b7c3209b81aba56..1ed1c05c3d54239d0ef4079e5f2e206a0615615e 100644 (file)
@@ -335,7 +335,7 @@ static int asus_raw_event(struct hid_device *hdev,
        if (drvdata->quirks & QUIRK_MEDION_E1239T)
                return asus_e1239t_event(drvdata, data, size);
 
-       if (drvdata->quirks & QUIRK_ROG_NKEY_KEYBOARD) {
+       if (drvdata->quirks & QUIRK_USE_KBD_BACKLIGHT) {
                /*
                 * Skip these report ID, the device emits a continuous stream associated
                 * with the AURA mode it is in which looks like an 'echo'.