summary refs log tree commit diff
path: root/pkgs/os-specific/linux/ax99100/kernel-6.1-set_termios-const-ktermios.patch
blob: 8d75ad454cfe28d3971062f6236a9abf33a9ce1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff -pNaru5 a/ax99100_sp.c b/ax99100_sp.c
--- ax99100_sp.c	2023-01-02 23:44:46.707423858 -0500
+++ ax99100_sp.c	2023-01-02 23:44:27.171293092 -0500
@@ -1915,11 +1915,13 @@ static unsigned int serial99100_get_divi
 	DEBUG("In %s quot=%u----baud=%u-----------------------------END\n",__FUNCTION__,quot,baud);
 	return quot;	
 }
 
 //This is a port ops function to set the terminal settings.
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,1,0)
+static void serial99100_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old)
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
 static void serial99100_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old)
 #else
 static void serial99100_set_termios(struct uart_port *port, struct termios *termios, struct termios *old)
 #endif
 {