Fix building with kernel 6.12
This commit is contained in:
committed by
Makarenko Oleg
parent
d95b73e042
commit
f683cac1c9
@@ -1,5 +1,5 @@
|
|||||||
PACKAGE_NAME="universal-pidff"
|
PACKAGE_NAME="universal-pidff"
|
||||||
PACKAGE_VERSION="0.0.10"
|
PACKAGE_VERSION="0.0.11"
|
||||||
MAKE[0]="make KVERSION=$kernelver"
|
MAKE[0]="make KVERSION=$kernelver"
|
||||||
CLEAN="make clean"
|
CLEAN="make clean"
|
||||||
BUILT_MODULE_NAME[0]="hid-universal-pidff"
|
BUILT_MODULE_NAME[0]="hid-universal-pidff"
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ static const struct hid_device_id pidff_wheel_devices[] = {
|
|||||||
MODULE_DEVICE_TABLE(hid, pidff_wheel_devices);
|
MODULE_DEVICE_TABLE(hid, pidff_wheel_devices);
|
||||||
|
|
||||||
|
|
||||||
static u8 *moza_report_fixup(struct hid_device *hdev, __u8 *rdesc,
|
static const u8 *moza_report_fixup(struct hid_device *hdev, __u8 *rdesc,
|
||||||
unsigned int *rsize)
|
unsigned int *rsize)
|
||||||
{
|
{
|
||||||
// Fix data type on PID Device Control
|
// Fix data type on PID Device Control
|
||||||
@@ -63,7 +63,7 @@ static u8 *moza_report_fixup(struct hid_device *hdev, __u8 *rdesc,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static u8 *universal_pidff_report_fixup(struct hid_device *hdev, __u8 *rdesc,
|
static const u8 *universal_pidff_report_fixup(struct hid_device *hdev, __u8 *rdesc,
|
||||||
unsigned int *rsize)
|
unsigned int *rsize)
|
||||||
{
|
{
|
||||||
if (hdev->vendor == USB_VENDOR_ID_MOZA) {
|
if (hdev->vendor == USB_VENDOR_ID_MOZA) {
|
||||||
|
|||||||
Reference in New Issue
Block a user