summarylogtreecommitdiffstats
path: root/0004-kernel-6.2-class-const-devnode.patch
diff options
context:
space:
mode:
authorChris Severance2023-12-18 02:17:37 -0500
committerChris Severance2023-12-18 02:17:37 -0500
commitecfd0dd193679a83b8f09b9ac58970122a80e48f (patch)
treeb087fccde88971026db2fb40806d4134cf180c1d /0004-kernel-6.2-class-const-devnode.patch
parent6a64238b6b33c7956eb0a27e215af3ea2bc66101 (diff)
downloadaur-asix-ax99100.tar.gz
autu: Update to 1.9.0-1
Diffstat (limited to '0004-kernel-6.2-class-const-devnode.patch')
-rw-r--r--0004-kernel-6.2-class-const-devnode.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/0004-kernel-6.2-class-const-devnode.patch b/0004-kernel-6.2-class-const-devnode.patch
new file mode 100644
index 000000000000..095c7c4a0c90
--- /dev/null
+++ b/0004-kernel-6.2-class-const-devnode.patch
@@ -0,0 +1,16 @@
+diff -pNaru5 a/ax99100_spi.c b/ax99100_spi.c
+--- a/ax99100_spi.c 2023-08-07 06:01:06.000000000 -0400
++++ b/ax99100_spi.c 2023-12-18 02:01:25.237345326 -0500
+@@ -74,11 +74,11 @@ KERN_INFO "ASIX AX99100 PCIe Bridge to S
+ int spi_suspend_count;
+ #define NUM_DEVICE 16
+ static unsigned int spi_major = 241;
+ static unsigned int spi_min_count = 0;
+ /* device Class */
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,19,0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(6,2,0)
+ static char *ax_devnode(struct device *dev, umode_t *mode)
+ #else
+ static char *ax_devnode(const struct device *dev, umode_t *mode)
+ #endif
+ {