Commit 17c82bce authored by Lidza Louina's avatar Lidza Louina Committed by Greg Kroah-Hartman

staging: dgap: tty.c: fixes errors with tty function calls

This patch fixes errors with the tty function calls
tty_buffer_request_room, tty_insert_flip_string_flags,
tty_insert_flip_string and tty_flip_buffer_push.

They now take struct tty_port as a parameter instead
of tty_struct.
Signed-off-by: default avatarLidza Louina <lidza.louina@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bb9ebe70
...@@ -881,20 +881,20 @@ void dgap_input(struct channel_t *ch) ...@@ -881,20 +881,20 @@ void dgap_input(struct channel_t *ch)
if (I_PARMRK(tp) || I_BRKINT(tp) || I_INPCK(tp)) { if (I_PARMRK(tp) || I_BRKINT(tp) || I_INPCK(tp)) {
dgap_parity_scan(ch, ch->ch_bd->flipbuf, ch->ch_bd->flipflagbuf, &len); dgap_parity_scan(ch, ch->ch_bd->flipbuf, ch->ch_bd->flipflagbuf, &len);
len = tty_buffer_request_room(tp, len); len = tty_buffer_request_room(tp->port, len);
tty_insert_flip_string_flags(tp, ch->ch_bd->flipbuf, tty_insert_flip_string_flags(tp->port, ch->ch_bd->flipbuf,
ch->ch_bd->flipflagbuf, len); ch->ch_bd->flipflagbuf, len);
} }
else { else {
len = tty_buffer_request_room(tp, len); len = tty_buffer_request_room(tp->port, len);
tty_insert_flip_string(tp, ch->ch_bd->flipbuf, len); tty_insert_flip_string(tp->port, ch->ch_bd->flipbuf, len);
} }
DGAP_UNLOCK(ch->ch_lock, lock_flags2); DGAP_UNLOCK(ch->ch_lock, lock_flags2);
DGAP_UNLOCK(bd->bd_lock, lock_flags); DGAP_UNLOCK(bd->bd_lock, lock_flags);
/* Tell the tty layer its okay to "eat" the data now */ /* Tell the tty layer its okay to "eat" the data now */
tty_flip_buffer_push(tp); tty_flip_buffer_push(tp->port);
} }
if (ld) if (ld)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment