From: Joel Stanley Date: Mon, 2 Jun 2014 05:36:10 +0000 (+0930) Subject: Update use of termios object X-Git-Url: https://git.decadent.org.uk/gitweb/?p=exar-uart-driver.git;a=commitdiff_plain;h=2e70a32b66bedcbba4cc971f708015aa2cc360cc Update use of termios object The following commit changed the api: commit adc8d746caa67fff4b53ba3e5163a6cbacc3b523 Author: Alan Cox Date: Sat Jul 14 15:31:47 2012 +0100 tty: move the termios object into the tty This fixes the following build failure against 3.13: xr21v141x-lnx-3.5-pak/vizzini.c: In function ‘xr21v141x_tty_set_termios’: xr21v141x-lnx-3.5-pak/vizzini.c:1096:22: error: invalid type argument of ‘->’ (have ‘struct ktermios’) cflag = tty->termios->c_cflag; Signed-off-by: Joel Stanley --- diff --git a/vizzini.c b/vizzini.c index 9c08e01..4646098 100644 --- a/vizzini.c +++ b/vizzini.c @@ -1093,7 +1093,7 @@ static void xr21v141x_tty_set_termios(struct tty_struct *tty, speed_t rate; unsigned int format_size, format_parity, format_stop, flow, gpio_mode; - cflag = tty->termios->c_cflag; + cflag = tty->termios.c_cflag; xr21v141x->clocal = ((cflag & CLOCAL) != 0);