/* Put single characters to the ttys character buffer  */
static int tty3270_put_char(struct tty_struct *tty, unsigned char ch)
/* Put single characters to the ttys character buffer  */
static int tty3270_put_char(struct tty_struct *tty, unsigned char ch)
{
	struct tty3270 *tp;
	tp = tty->driver_data;
	if (!tp || tp->char_count >= TTY3270_CHAR_BUF_SIZE)
		return 0;
	tp->char_buf[tp->char_count++] = ch;
	return 1;
}