lkml.org 
[lkml]   [2013]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] tty: metag_da: update flip functions to use tty_port
Date
Commit "TTY: switch tty_flip_buffer_push" and "TTY: convert more
flipping functions" switched tty_flip_buffer_push() and
tty_prepare_flip_string() to take tty_port rather than a tty_struct.

Convert the metag_da tty driver similarly.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/tty/metag_da.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/tty/metag_da.c b/drivers/tty/metag_da.c
index 6a0b2e6..fc2a36b 100644
--- a/drivers/tty/metag_da.c
+++ b/drivers/tty/metag_da.c
@@ -163,13 +163,14 @@ static int fetch_data(struct tty_struct *tty)
int space;
unsigned char *cbuf;

- space = tty_prepare_flip_string(tty, &cbuf, received);
+ space = tty_prepare_flip_string(&dport->port, &cbuf,
+ received);

if (space <= 0)
goto unlock;

memcpy(cbuf, dport->rx_buf, space);
- tty_flip_buffer_push(tty);
+ tty_flip_buffer_push(&dport->port);
}
}
unlock:
--
1.7.7.6



\
 
 \ /
  Last update: 2013-02-05 16:21    [W:0.052 / U:3.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site