@@ -646,7 +646,7 @@ static void shutdown(struct tty_struct *tty, struct serial_state *info)
646646 custom .adkcon = AC_UARTBRK ;
647647 mb ();
648648
649- if (tty -> termios -> c_cflag & HUPCL )
649+ if (tty -> termios . c_cflag & HUPCL )
650650 info -> MCR &= ~(SER_DTR |SER_RTS );
651651 rtsdtr_ctrl (info -> MCR );
652652
@@ -670,7 +670,7 @@ static void change_speed(struct tty_struct *tty, struct serial_state *info,
670670 int bits ;
671671 unsigned long flags ;
672672
673- cflag = tty -> termios -> c_cflag ;
673+ cflag = tty -> termios . c_cflag ;
674674
675675 /* Byte size is always 8 bits plus parity bit if requested */
676676
@@ -707,8 +707,8 @@ static void change_speed(struct tty_struct *tty, struct serial_state *info,
707707 /* If the quotient is zero refuse the change */
708708 if (!quot && old_termios ) {
709709 /* FIXME: Will need updating for new tty in the end */
710- tty -> termios -> c_cflag &= ~CBAUD ;
711- tty -> termios -> c_cflag |= (old_termios -> c_cflag & CBAUD );
710+ tty -> termios . c_cflag &= ~CBAUD ;
711+ tty -> termios . c_cflag |= (old_termios -> c_cflag & CBAUD );
712712 baud = tty_get_baud_rate (tty );
713713 if (!baud )
714714 baud = 9600 ;
@@ -984,7 +984,7 @@ static void rs_throttle(struct tty_struct * tty)
984984 if (I_IXOFF (tty ))
985985 rs_send_xchar (tty , STOP_CHAR (tty ));
986986
987- if (tty -> termios -> c_cflag & CRTSCTS )
987+ if (tty -> termios . c_cflag & CRTSCTS )
988988 info -> MCR &= ~SER_RTS ;
989989
990990 local_irq_save (flags );
@@ -1012,7 +1012,7 @@ static void rs_unthrottle(struct tty_struct * tty)
10121012 else
10131013 rs_send_xchar (tty , START_CHAR (tty ));
10141014 }
1015- if (tty -> termios -> c_cflag & CRTSCTS )
1015+ if (tty -> termios . c_cflag & CRTSCTS )
10161016 info -> MCR |= SER_RTS ;
10171017 local_irq_save (flags );
10181018 rtsdtr_ctrl (info -> MCR );
@@ -1330,7 +1330,7 @@ static void rs_set_termios(struct tty_struct *tty, struct ktermios *old_termios)
13301330{
13311331 struct serial_state * info = tty -> driver_data ;
13321332 unsigned long flags ;
1333- unsigned int cflag = tty -> termios -> c_cflag ;
1333+ unsigned int cflag = tty -> termios . c_cflag ;
13341334
13351335 change_speed (tty , info , old_termios );
13361336
@@ -1347,7 +1347,7 @@ static void rs_set_termios(struct tty_struct *tty, struct ktermios *old_termios)
13471347 if (!(old_termios -> c_cflag & CBAUD ) &&
13481348 (cflag & CBAUD )) {
13491349 info -> MCR |= SER_DTR ;
1350- if (!(tty -> termios -> c_cflag & CRTSCTS ) ||
1350+ if (!(tty -> termios . c_cflag & CRTSCTS ) ||
13511351 !test_bit (TTY_THROTTLED , & tty -> flags )) {
13521352 info -> MCR |= SER_RTS ;
13531353 }
@@ -1358,7 +1358,7 @@ static void rs_set_termios(struct tty_struct *tty, struct ktermios *old_termios)
13581358
13591359 /* Handle turning off CRTSCTS */
13601360 if ((old_termios -> c_cflag & CRTSCTS ) &&
1361- !(tty -> termios -> c_cflag & CRTSCTS )) {
1361+ !(tty -> termios . c_cflag & CRTSCTS )) {
13621362 tty -> hw_stopped = 0 ;
13631363 rs_start (tty );
13641364 }
@@ -1371,7 +1371,7 @@ static void rs_set_termios(struct tty_struct *tty, struct ktermios *old_termios)
13711371 * or not. Hence, this may change.....
13721372 */
13731373 if (!(old_termios -> c_cflag & CLOCAL ) &&
1374- (tty -> termios -> c_cflag & CLOCAL ))
1374+ (tty -> termios . c_cflag & CLOCAL ))
13751375 wake_up_interruptible (& info -> open_wait );
13761376#endif
13771377}
0 commit comments