mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-15 21:57:02 +02:00
xpadneo: Fix dkms build for linux6.12
This commit is contained in:
parent
cd7206ffb8
commit
e1f274b674
2 changed files with 25 additions and 1 deletions
24
srcpkgs/xpadneo/patches/fix-xpadneo-dkms-linux-6.12.patch
Normal file
24
srcpkgs/xpadneo/patches/fix-xpadneo-dkms-linux-6.12.patch
Normal file
|
@ -0,0 +1,24 @@
|
|||
diff --git a/hid-xpadneo/src/hid-xpadneo.c b/hid-xpadneo/src/hid-xpadneo.c
|
||||
index 1a25631..c70b7cf 100644
|
||||
--- a/hid-xpadneo/src/hid-xpadneo.c
|
||||
+++ b/hid-xpadneo/src/hid-xpadneo.c
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <linux/delay.h>
|
||||
#include <linux/module.h>
|
||||
+#include <linux/version.h>
|
||||
|
||||
#include "xpadneo.h"
|
||||
|
||||
@@ -712,7 +713,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);
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'xpadneo'
|
||||
pkgname=xpadneo
|
||||
version=0.9.6
|
||||
revision=1
|
||||
revision=2
|
||||
depends="dkms bluez"
|
||||
short_desc="Bluetooth driver for Xbox One Wireless Controller"
|
||||
maintainer="Joshua Krämer <joshua@kraemer.link>"
|
||||
|
|
Loading…
Add table
Reference in a new issue