HID: asus: ROG NKey: Ignore portion of 0x5a report
authorJosh Kilmer <srjek2@gmail.com>
Thu, 28 Jul 2022 17:51:11 +0000 (12:51 -0500)
committerJiri Kosina <jkosina@suse.cz>
Thu, 25 Aug 2022 09:31:41 +0000 (11:31 +0200)
commit1c0cc9d11c665020cbeb80e660fb8929164407f4
tree77585dfe47e52bde7c7f49e72ef9ae3533add68d
parenta5623a203cffe2d2b84d2f6c989d9017db1856af
HID: asus: ROG NKey: Ignore portion of 0x5a report

On an Asus G513QY, of the 5 bytes in a 0x5a report, only the first byte
is a meaningful keycode. The other bytes are zeroed out or hold garbage
from the last packet sent to the keyboard.

This patch fixes up the report descriptor for this event so that the
general hid code will only process 1 byte for keycodes, avoiding
spurious key events and unmapped Asus vendor usagepage code warnings.

Signed-off-by: Josh Kilmer <srjek2@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-asus.c