Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95228
b: refs/heads/master
c: 5d19f54
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Apr 30, 2008
1 parent 2e79544 commit 538e3a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 55da77899c1472d83452c914fa179d00ea96df65
refs/heads/master: 5d19f546e7b6f0976f957780f2687c55668f4495
5 changes: 3 additions & 2 deletions trunk/drivers/char/viocons.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,20 +628,21 @@ static int viotty_write(struct tty_struct *tty, const unsigned char *buf,
/*
* TTY put_char method
*/
static void viotty_put_char(struct tty_struct *tty, unsigned char ch)
static int viotty_put_char(struct tty_struct *tty, unsigned char ch)
{
struct port_info *pi;

pi = get_port_data(tty);
if (pi == NULL)
return;
return 0;

/* This will append '\r' as well if the char is '\n' */
if (viochar_is_console(pi))
hvlogOutput(&ch, 1);

if (viopath_isactive(pi->lp))
internal_write(pi, &ch, 1);
return 1;
}

/*
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/char/vt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2642,11 +2642,11 @@ static int con_write(struct tty_struct *tty, const unsigned char *buf, int count
return retval;
}

static void con_put_char(struct tty_struct *tty, unsigned char ch)
static int con_put_char(struct tty_struct *tty, unsigned char ch)
{
if (in_interrupt())
return; /* n_r3964 calls put_char() from interrupt context */
do_con_write(tty, &ch, 1);
return 0; /* n_r3964 calls put_char() from interrupt context */
return do_con_write(tty, &ch, 1);
}

static int con_write_room(struct tty_struct *tty)
Expand Down

0 comments on commit 538e3a9

Please sign in to comment.