linuxPackages.ax99100: fix build with Linux >= 6.2

+14 -1
+3 -1
pkgs/os-specific/linux/ax99100/default.nix
··· 26 patches = [ 27 ./kernel-5.18-pci_free_consistent-pci_alloc_consistent.patch 28 ./kernel-6.1-set_termios-const-ktermios.patch 29 - ]; 30 31 patchFlags = [ "-p0" ]; 32
··· 26 patches = [ 27 ./kernel-5.18-pci_free_consistent-pci_alloc_consistent.patch 28 ./kernel-6.1-set_termios-const-ktermios.patch 29 + ] ++ (lib.optional (lib.versionAtLeast kernel.version "6.2") [ 30 + ./kernel-6.2-fix-pointer-type.patch 31 + ]); 32 33 patchFlags = [ "-p0" ]; 34
+11
pkgs/os-specific/linux/ax99100/kernel-6.2-fix-pointer-type.patch
···
··· 1 + --- ax99100_spi.c 2 + +++ ax99100_spi.c 3 + @@ -76,7 +76,7 @@ int spi_suspend_count; 4 + static unsigned int spi_major = 241; 5 + static unsigned int spi_min_count = 0; 6 + /* device Class */ 7 + -static char *ax_devnode(struct device *dev, umode_t *mode) 8 + +static char *ax_devnode(const struct device *dev, umode_t *mode) 9 + { 10 + return kasprintf(GFP_KERNEL, "%s", dev_name(dev)); 11 + }