From 7fd5e89c96cc92254e36012eee733748d255ff29 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 7 Oct 2014 16:28:04 +0200 Subject: termios: Partially hide rtems_termios_tty Move interrupt lock to device context and expose only this structure to the read, write and set attributes device handler. This makes these device handler independent of the general Termios infrastructure suitable for direct use in printk() support. --- cpukit/libcsupport/src/termios_setbestbaud.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/libcsupport/src/termios_setbestbaud.c') diff --git a/cpukit/libcsupport/src/termios_setbestbaud.c b/cpukit/libcsupport/src/termios_setbestbaud.c index 3d7a3a80f0..768011892e 100644 --- a/cpukit/libcsupport/src/termios_setbestbaud.c +++ b/cpukit/libcsupport/src/termios_setbestbaud.c @@ -19,8 +19,8 @@ #include void rtems_termios_set_best_baud( - rtems_termios_tty *tty, - uint32_t baud + struct termios *term, + uint32_t baud ) { const rtems_assoc_t *current = &rtems_termios_baud_table[ 0 ]; @@ -41,5 +41,5 @@ void rtems_termios_set_best_baud( cbaud = B460800; } - tty->termios.c_cflag = (tty->termios.c_cflag & ~cbaud_mask) | cbaud; + term->c_cflag = (term->c_cflag & ~cbaud_mask) | cbaud; } -- cgit v1.2.3