Skip to content

Commit

Permalink
Fix failing build with kernel 6.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Z1ni committed Nov 24, 2024
1 parent 0105f0c commit 126d30d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hid-turbocharger.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ MODULE_DESCRIPTION("HID driver for Virgoo / Rainbow Turbocharger controller");
* causing the value to be interpreted as 129. This is fixed by setting the
* following byte to 0xFF instead of 0x00.
*/
static __u8 *turbocharger_report_fixup(struct hid_device *hdev, __u8 *rdesc,
static const __u8 *turbocharger_report_fixup(struct hid_device *hdev, __u8 *rdesc,
unsigned int *rsize)
{
if (*rsize == 138 && rdesc[36] == 0x16 && rdesc[37] == 0x81
Expand All @@ -44,4 +44,4 @@ static struct hid_driver turbocharger_driver = {

module_hid_driver(turbocharger_driver);

MODULE_LICENSE("GPL");
MODULE_LICENSE("GPL");

0 comments on commit 126d30d

Please sign in to comment.