summarylogtreecommitdiffstats
path: root/0003-kernel-6.0-set_termios-const-ktermios.patch
blob: 3d7a9f13534c16fd5c6f4b6998f29e53ce6d28da (plain)
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
--- a/ax99100_sp.c	2023-01-02 23:44:46.707423858 -0500
+++ b/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,0,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
 {