summarylogtreecommitdiffstats
path: root/0011-kernel-6.0-set_termios-const-ktermios.patch
blob: 8db4ce693efe1915c9e5e3c209f443e0cae7c4ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff -pNaru5 a/driver/2.6.27/dgnc_tty.c b/driver/2.6.27/dgnc_tty.c
--- a/driver/2.6.27/dgnc_tty.c	2023-01-28 15:45:44.006164787 -0500
+++ b/driver/2.6.27/dgnc_tty.c	2023-01-28 15:48:09.570243005 -0500
@@ -152,11 +152,15 @@ static int dgnc_tty_tiocmget(struct tty_
 static int dgnc_tty_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear);
 #endif
 static int dgnc_tty_send_break(struct tty_struct *tty, int msec);
 static void dgnc_tty_wait_until_sent(struct tty_struct *tty, int timeout);
 static int dgnc_tty_write(struct tty_struct *tty, const unsigned char *buf, int count);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,0,0)
 static void dgnc_tty_set_termios(struct tty_struct *tty, struct ktermios *old_termios);
+#else
+static void dgnc_tty_set_termios(struct tty_struct *tty, const struct ktermios *old_termios);
+#endif
 static void dgnc_tty_send_xchar(struct tty_struct *tty, char ch);
 
 
 static const struct tty_operations dgnc_tty_ops = {
 	.open = dgnc_tty_open,
@@ -2999,11 +3003,15 @@ static int dgnc_tty_digiseta(struct tty_
 
 
 /*
  * dgnc_set_termios()
  */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,0,0)
 static void dgnc_tty_set_termios(struct tty_struct *tty, struct ktermios *old_termios)
+#else
+static void dgnc_tty_set_termios(struct tty_struct *tty, const struct ktermios *old_termios)
+#endif
 {
 	struct board_t *bd;
 	struct channel_t *ch;
 	struct un_t *un;
 	unsigned long lock_flags;