]> git.decadent.org.uk Git - exar-uart-driver.git/commitdiff
Update use of termios object
authorJoel Stanley <joel@jms.id.au>
Mon, 2 Jun 2014 05:36:10 +0000 (15:06 +0930)
committerJoel Stanley <joel@jms.id.au>
Sun, 8 Jun 2014 04:43:48 +0000 (14:13 +0930)
The following commit changed the api:

  commit adc8d746caa67fff4b53ba3e5163a6cbacc3b523
  Author: Alan Cox <alan@linux.intel.com>
  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 <joel@jms.id.au>
vizzini.c

index 9c08e013b948a617e1ee104d143fb88f5dc6a614..4646098d5e75c352dc4f1cbb016656f5f1af9c8b 100644 (file)
--- 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);