/* Returns the amount of free space in the output buffer.  */
static int tty3215_write_room(struct tty_struct *tty)
/* Returns the amount of free space in the output buffer.  */
static int tty3215_write_room(struct tty_struct *tty)
{
	struct raw3215_info *raw;
	raw = (struct raw3215_info *) tty->driver_data;
	if ((RAW3215_BUFFER_SIZE - raw->count - TAB_STOP_SIZE) >= 0)
		return RAW3215_BUFFER_SIZE - raw->count - TAB_STOP_SIZE;
	else
		return 0;
}