From: James Hogan <james.hogan@imgtec.com>
To: Jiri Slaby <jslaby@suse.cz>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: <linux-kernel@vger.kernel.org>, James Hogan <james.hogan@imgtec.com>
Subject: [PATCH 1/2] tty: metag_da: update flip functions to use tty_port
Date: Tue, 5 Feb 2013 14:40:49 +0000 [thread overview]
Message-ID: <1360075250-21970-2-git-send-email-james.hogan@imgtec.com> (raw)
In-Reply-To: <1360075250-21970-1-git-send-email-james.hogan@imgtec.com>
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
next prev parent reply other threads:[~2013-02-05 14:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-05 14:40 [PATCH 0/2] tty: metag_da: fix flipping after tty changes James Hogan
2013-02-05 14:40 ` James Hogan [this message]
2013-02-05 14:40 ` [PATCH 2/2] tty: metag_da: avoid getting tty kref in dashtty_timer() James Hogan
2013-02-05 15:15 ` [PATCH 0/2] tty: metag_da: fix flipping after tty changes Jiri Slaby
2013-02-05 15:23 ` James Hogan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1360075250-21970-2-git-send-email-james.hogan@imgtec.com \
--to=james.hogan@imgtec.com \
--cc=gregkh@linuxfoundation.org \
--cc=jslaby@suse.cz \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®