diff --git a/srcpkgs/xpadneo/patches/fix-xpadneo-dkms-linux-6.12.patch b/srcpkgs/xpadneo/patches/fix-xpadneo-dkms-linux-6.12.patch new file mode 100644 index 00000000000..edc5061862c --- /dev/null +++ b/srcpkgs/xpadneo/patches/fix-xpadneo-dkms-linux-6.12.patch @@ -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 + #include ++#include + + #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); + diff --git a/srcpkgs/xpadneo/template b/srcpkgs/xpadneo/template index e0dcb7db4db..6591bee8e34 100644 --- a/srcpkgs/xpadneo/template +++ b/srcpkgs/xpadneo/template @@ -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 "