Commit 515be7ba authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by Greg Kroah-Hartman
Browse files

tty: Cleanup tty_port_set_initialized() bool parameter

parent 3bec2f77
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1309,7 +1309,7 @@ static int startup(MGSLPC_INFO * info, struct tty_struct *tty)
	if (tty)
		clear_bit(TTY_IO_ERROR, &tty->flags);

	tty_port_set_initialized(&info->port, 1);
	tty_port_set_initialized(&info->port, true);

	return 0;
}
@@ -1359,7 +1359,7 @@ static void shutdown(MGSLPC_INFO * info, struct tty_struct *tty)
	if (tty)
		set_bit(TTY_IO_ERROR, &tty->flags);

	tty_port_set_initialized(&info->port, 0);
	tty_port_set_initialized(&info->port, false);
}

static void mgslpc_program_hw(MGSLPC_INFO *info, struct tty_struct *tty)
+2 −2
Original line number Diff line number Diff line
@@ -647,7 +647,7 @@ static void ipoctal_hangup(struct tty_struct *tty)
	tty_port_hangup(&channel->tty_port);

	ipoctal_reset_channel(channel);
	tty_port_set_initialized(&channel->tty_port, 0);
	tty_port_set_initialized(&channel->tty_port, false);
	wake_up_interruptible(&channel->tty_port.open_wait);
}

@@ -659,7 +659,7 @@ static void ipoctal_shutdown(struct tty_struct *tty)
		return;

	ipoctal_reset_channel(channel);
	tty_port_set_initialized(&channel->tty_port, 0);
	tty_port_set_initialized(&channel->tty_port, false);
}

static void ipoctal_cleanup(struct tty_struct *tty)
+2 −2
Original line number Diff line number Diff line
@@ -629,7 +629,7 @@ static int raw3215_startup(struct raw3215_info *raw)
	if (tty_port_initialized(&raw->port))
		return 0;
	raw->line_pos = 0;
	tty_port_set_initialized(&raw->port, 1);
	tty_port_set_initialized(&raw->port, true);
	spin_lock_irqsave(get_ccwdev_lock(raw->cdev), flags);
	raw3215_try_io(raw);
	spin_unlock_irqrestore(get_ccwdev_lock(raw->cdev), flags);
@@ -659,7 +659,7 @@ static void raw3215_shutdown(struct raw3215_info *raw)
		spin_lock_irqsave(get_ccwdev_lock(raw->cdev), flags);
		remove_wait_queue(&raw->empty_wait, &wait);
		set_current_state(TASK_RUNNING);
		tty_port_set_initialized(&raw->port, 1);
		tty_port_set_initialized(&raw->port, true);
	}
	spin_unlock_irqrestore(get_ccwdev_lock(raw->cdev), flags);
}
+2 −2
Original line number Diff line number Diff line
@@ -502,7 +502,7 @@ static int startup(struct tty_struct *tty, struct serial_state *info)
	 */
	change_speed(tty, info, NULL);

	tty_port_set_initialized(port, 1);
	tty_port_set_initialized(port, true);
	local_irq_restore(flags);
	return 0;

@@ -556,7 +556,7 @@ static void shutdown(struct tty_struct *tty, struct serial_state *info)

	set_bit(TTY_IO_ERROR, &tty->flags);

	tty_port_set_initialized(&info->tport, 0);
	tty_port_set_initialized(&info->tport, false);
	local_irq_restore(flags);
}

+1 −1
Original line number Diff line number Diff line
@@ -1484,7 +1484,7 @@ static int moxa_open(struct tty_struct *tty, struct file *filp)
		MoxaPortLineCtrl(ch, 1, 1);
		MoxaPortEnable(ch);
		MoxaSetFifo(ch, ch->type == PORT_16550A);
		tty_port_set_initialized(&ch->port, 1);
		tty_port_set_initialized(&ch->port, true);
	}
	mutex_unlock(&ch->port.mutex);
	mutex_unlock(&moxa_openlock);
Loading