diff options
author | Luke D Jones <luke@ljones.dev> | 2021-02-19 00:38:46 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-18 11:02:47 +0300 |
commit | 0739b45a20c38a40122680a82f81e0d21db2a787 (patch) | |
tree | 00ad00fac19df199a17bd6b80c6ba74250fd802b /drivers/hid | |
parent | fdd51e34f45311ab6e48d2147cbc2904731b9993 (diff) | |
download | linux-0739b45a20c38a40122680a82f81e0d21db2a787.tar.xz |
HID: asus: Filter keyboard EC for old ROG keyboard
[ Upstream commit 4bfb2c72b2bfca8684c2f5c25a3119bad016a9d3 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-asus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c index 2ab22b925941..1ed1c05c3d54 100644 --- a/drivers/hid/hid-asus.c +++ b/drivers/hid/hid-asus.c @@ -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'. |