Skip to content

Commit 6100a34

Browse files
zaps166berarma
authored andcommittedNov 24, 2024
Fix build on Linux 6.12
1 parent 1a2d572 commit 6100a34

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎hid-lg.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <linux/sched.h>
2121
#include <linux/usb.h>
2222
#include <linux/wait.h>
23+
#include <linux/version.h>
2324

2425
#include "usbhid/usbhid.h"
2526
#include "hid-ids.h"
@@ -427,7 +428,11 @@ static __u8 fg_rdesc_fixed[] = {
427428
* above the logical maximum described in descriptor. This extends
428429
* the original value of 0x28c of logical maximum to 0x104d
429430
*/
430-
static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc,
431+
static
432+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,12,0)
433+
const
434+
#endif
435+
__u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc,
431436
unsigned int *rsize)
432437
{
433438
struct lg_drv_data *drv_data = hid_get_drvdata(hdev);

0 commit comments

Comments
 (0)
Please sign in to comment.