From 47068fd4ec8da5770b59b1e4c15bc12d61051b19 Mon Sep 17 00:00:00 2001 From: Andrew Exton Date: Tue, 19 May 2026 16:39:21 -0700 Subject: [PATCH 1/2] updated hid_report_raw event function call signature for kernel 7.0.9 --- mainline/hid-logitech-hidpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainline/hid-logitech-hidpp.c b/mainline/hid-logitech-hidpp.c index 909c016..b4b633a 100644 --- a/mainline/hid-logitech-hidpp.c +++ b/mainline/hid-logitech-hidpp.c @@ -9575,7 +9575,7 @@ static int hidpp10_consumer_keys_raw_event(struct hidpp_device *hidpp, memcpy(&consumer_report[1], &data[3], 4); /* We are called from atomic context */ hid_report_raw_event(hidpp->hid_dev, HID_INPUT_REPORT, - consumer_report, 5, 1); + consumer_report, sizeof(consumer_report), 5, 1); return 1; } From 7b172b0ed0b776648a41035c3d6b68b1d02d8eb5 Mon Sep 17 00:00:00 2001 From: Andrew Exton Date: Tue, 19 May 2026 17:00:39 -0700 Subject: [PATCH 2/2] kernel version check for implementation. --- mainline/hid-logitech-hidpp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mainline/hid-logitech-hidpp.c b/mainline/hid-logitech-hidpp.c index b4b633a..8f5d788 100644 --- a/mainline/hid-logitech-hidpp.c +++ b/mainline/hid-logitech-hidpp.c @@ -9574,8 +9574,14 @@ static int hidpp10_consumer_keys_raw_event(struct hidpp_device *hidpp, consumer_report[0] = 0x03; memcpy(&consumer_report[1], &data[3], 4); /* We are called from atomic context */ + + #if LINUX_VERSION_CODE >= KERNEL_VERSION(7, 0, 9) hid_report_raw_event(hidpp->hid_dev, HID_INPUT_REPORT, consumer_report, sizeof(consumer_report), 5, 1); + #else + hid_report_raw_event(hidpp->hid_dev, HID_INPUT_REPORT, + consumer_report, 5, 1); + #endif return 1; }