xpadneo: update to 0.9.7

Closes:  [via git-merge-pr]
This commit is contained in:
SpidFightFR 2024-12-23 18:22:06 +01:00 committed by classabbyamp
parent e385c788c9
commit a79706e0df
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5
2 changed files with 3 additions and 27 deletions

View file

@ -1,24 +0,0 @@
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);

View file

@ -1,14 +1,14 @@
# Template file for 'xpadneo'
pkgname=xpadneo
version=0.9.6
revision=2
version=0.9.7
revision=1
depends="dkms bluez"
short_desc="Bluetooth driver for Xbox One Wireless Controller"
maintainer="Joshua Krämer <joshua@kraemer.link>"
license="GPL-3.0-or-later"
homepage="https://github.com/atar-axis/xpadneo"
distfiles="https://github.com/atar-axis/xpadneo/archive/v${version}.tar.gz"
checksum=6fcb3376b31781a6341bf01912430bf7c3543d930dbee23915be77e7879330e3
checksum=0af52aa1e800a49ae6623ef545d9ed541f3a1fcfeac586bf27caf8185524e7c3
dkms_modules="hid-xpadneo ${version}"
do_install() {