summaryrefslogtreecommitdiffstats
path: root/tty/tiny_serial.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@dowhile0.org>2013-04-26 22:56:05 +0200
committerJavier Martinez Canillas <javier@dowhile0.org>2013-04-27 01:48:13 +0200
commitd9c53b5a84cc98e901b5eb0bdd925edecbe334d7 (patch)
treea2a8a16316cc219a3864c95f94434316faea14a4 /tty/tiny_serial.c
parentfbb342780c8ce22579fedb4ef260d0ac3cd764d8 (diff)
downloadldd3-d9c53b5a84cc98e901b5eb0bdd925edecbe334d7.tar.gz
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 <javier@dowhile0.org>
Diffstat (limited to 'tty/tiny_serial.c')
-rw-r--r--tty/tiny_serial.c7
1 files changed, 5 insertions, 2 deletions
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;