mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
21 lines
503 B
Diff
21 lines
503 B
Diff
--- a/hid-xpadneo.c
|
|
+++ b/hid-xpadneo.c
|
|
@@ -713,5 +713,9 @@
|
|
}
|
|
|
|
+#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);
|
|
--- a/xpadneo.h
|
|
+++ b/xpadneo.h
|
|
@@ -13,4 +13,5 @@
|
|
|
|
#include <linux/hid.h>
|
|
+#include <linux/version.h>
|
|
|
|
#include "hid-ids.h"
|