Skip to content

Instantly share code, notes, and snippets.

@fatalgoth
fatalgoth / gist:7361152a0613e52708e3f579846de17e
Created March 23, 2020 04:10
Asus ROG Zephyrus GA502DU Keyboard LED Kernel 5.5.11 Patch (version 1)
diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c
index e6e4c841fb06..f7fa2ceb728b 100644
--- a/drivers/hid/hid-asus.c
+++ b/drivers/hid/hid-asus.c
@@ -260,12 +260,14 @@ static int asus_report_input(struct asus_drvdata *drvdat, u8 *data, int size)
static int asus_event(struct hid_device *hdev, struct hid_field *field,
struct hid_usage *usage, __s32 value)
{
- if ((usage->hid & HID_USAGE_PAGE) == 0xff310000 &&
+ /* No need to warn because it'll just spam the log until we get a proper fix.