diff --git a/hid-xpadneo/src/hid-xpadneo.c b/hid-xpadneo/src/hid-xpadneo.c index 9d7c084..30a5a12 100644 --- a/hid-xpadneo/src/hid-xpadneo.c +++ b/hid-xpadneo/src/hid-xpadneo.c @@ -656,7 +656,11 @@ static int xpadneo_input_mapping(struct hid_device *hdev, struct hid_input *hi, return MAP_AUTO; } +#if LINUX_VERSION_CODE < KERNEL_VERSION(6,12,0) static u8 *xpadneo_report_fixup(struct hid_device *hdev, u8 *rdesc, unsigned int *rsize) +#else +static const u8 *xpadneo_report_fixup(struct hid_device *hdev, u8 *rdesc, unsigned int *rsize) +#endif { struct xpadneo_devdata *xdata = hid_get_drvdata(hdev);