blob: 095c7c4a0c90aeba27454b4b87b8828f63c96afa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
{
|