From d9c53b5a84cc98e901b5eb0bdd925edecbe334d7 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Fri, 26 Apr 2013 22:56:05 +0200 Subject: tty: pass tty_port to tty functions instead of tty_struct commit 227434f8 ("TTY: switch tty_buffer_request_room to tty_port") started to convert all tty functions to receive a tty_port instead of a tt_struct. Update the drivers according this API change. Signed-off-by: Javier Martinez Canillas --- tty/tiny_serial.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tty/tiny_serial.c') diff --git a/tty/tiny_serial.c b/tty/tiny_serial.c index 67acda3..4fda428 100644 --- a/tty/tiny_serial.c +++ b/tty/tiny_serial.c @@ -96,6 +96,7 @@ static void tiny_timer(unsigned long data) { struct uart_port *port; struct tty_struct *tty; + struct tty_port *tty_port; port = (struct uart_port *)data; @@ -107,11 +108,13 @@ static void tiny_timer(unsigned long data) if (!tty) return; + tty_port = tty->port; + /* add one character to the tty port */ /* this doesn't actually push the data through unless tty->low_latency is set */ - tty_insert_flip_char(tty, TINY_DATA_CHARACTER, 0); + tty_insert_flip_char(tty_port, TINY_DATA_CHARACTER, 0); - tty_flip_buffer_push(tty); + tty_flip_buffer_push(tty_port); /* resubmit the timer again */ timer->expires = jiffies + DELAY_TIME; -- cgit v1.2.1-18-gbd029