diff options
| author | MmAaXx500 <viktor.balogh45@gmail.com> | 2024-11-24 00:24:21 +0100 |
|---|---|---|
| committer | MmAaXx500 <viktor.balogh45@gmail.com> | 2024-11-24 00:24:21 +0100 |
| commit | f5b2d53fe908a847d8000d7831d411cf68731fca (patch) | |
| tree | 5b388e166a54a7761d2f0375c8e8ee24389bc454 /src/hid-tmff2.c | |
| parent | 542f3f002b4e1c3a8a5506ed9ec546fe28a890bf (diff) | |
| download | hid-tmff2-f5b2d53fe908a847d8000d7831d411cf68731fca.tar.gz hid-tmff2-f5b2d53fe908a847d8000d7831d411cf68731fca.zip | |
fix report_fixup() on linux 6.12
"HID: change return type of report_fixup() to const" fe73965
Diffstat (limited to 'src/hid-tmff2.c')
| -rw-r--r-- | src/hid-tmff2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hid-tmff2.c b/src/hid-tmff2.c index 3b51445..e691af4 100644 --- a/src/hid-tmff2.c +++ b/src/hid-tmff2.c @@ -2,6 +2,7 @@ #include <linux/workqueue.h> #include <linux/module.h> #include <linux/hid.h> +#include <linux/version.h> #include "hid-tmff2.h" @@ -712,8 +713,13 @@ oom_err: return ret; } +#if LINUX_VERSION_CODE < KERNEL_VERSION(6,12,0) static __u8 *tmff2_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) +#else +static const __u8 *tmff2_report_fixup(struct hid_device *hdev, __u8 *rdesc, + unsigned int *rsize) +#endif { struct tmff2_device_entry *tmff2 = tmff2_from_hdev(hdev); |
