mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 16:50:05 +00:00
TTY: simserial, remove some tty ops
All ->start, ->stop and ->wait_until_sent are empty and need not be defined. The time to remove them is now. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7f32f8dd34
commit
2fcd5caf6d
@ -64,31 +64,6 @@ static struct console *console;
|
|||||||
|
|
||||||
extern struct console *console_drivers; /* from kernel/printk.c */
|
extern struct console *console_drivers; /* from kernel/printk.c */
|
||||||
|
|
||||||
/*
|
|
||||||
* ------------------------------------------------------------
|
|
||||||
* rs_stop() and rs_start()
|
|
||||||
*
|
|
||||||
* This routines are called before setting or resetting tty->stopped.
|
|
||||||
* They enable or disable transmitter interrupts, as necessary.
|
|
||||||
* ------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
static void rs_stop(struct tty_struct *tty)
|
|
||||||
{
|
|
||||||
#ifdef SIMSERIAL_DEBUG
|
|
||||||
printk("rs_stop: tty->stopped=%d tty->hw_stopped=%d tty->flow_stopped=%d\n",
|
|
||||||
tty->stopped, tty->hw_stopped, tty->flow_stopped);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
static void rs_start(struct tty_struct *tty)
|
|
||||||
{
|
|
||||||
#ifdef SIMSERIAL_DEBUG
|
|
||||||
printk("rs_start: tty->stopped=%d tty->hw_stopped=%d tty->flow_stopped=%d\n",
|
|
||||||
tty->stopped, tty->hw_stopped, tty->flow_stopped);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
static void receive_chars(struct tty_struct *tty)
|
static void receive_chars(struct tty_struct *tty)
|
||||||
{
|
{
|
||||||
unsigned char ch;
|
unsigned char ch;
|
||||||
@ -406,7 +381,6 @@ static void rs_set_termios(struct tty_struct *tty, struct ktermios *old_termios)
|
|||||||
if ((old_termios->c_cflag & CRTSCTS) &&
|
if ((old_termios->c_cflag & CRTSCTS) &&
|
||||||
!(tty->termios->c_cflag & CRTSCTS)) {
|
!(tty->termios->c_cflag & CRTSCTS)) {
|
||||||
tty->hw_stopped = 0;
|
tty->hw_stopped = 0;
|
||||||
rs_start(tty);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
@ -513,14 +487,6 @@ static void rs_close(struct tty_struct *tty, struct file * filp)
|
|||||||
wake_up_interruptible(&port->close_wait);
|
wake_up_interruptible(&port->close_wait);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* rs_wait_until_sent() --- wait until the transmitter is empty
|
|
||||||
*/
|
|
||||||
static void rs_wait_until_sent(struct tty_struct *tty, int timeout)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* rs_hangup() --- called by tty_hangup() when a hangup is signaled.
|
* rs_hangup() --- called by tty_hangup() when a hangup is signaled.
|
||||||
*/
|
*/
|
||||||
@ -736,10 +702,7 @@ static const struct tty_operations hp_ops = {
|
|||||||
.unthrottle = rs_unthrottle,
|
.unthrottle = rs_unthrottle,
|
||||||
.send_xchar = rs_send_xchar,
|
.send_xchar = rs_send_xchar,
|
||||||
.set_termios = rs_set_termios,
|
.set_termios = rs_set_termios,
|
||||||
.stop = rs_stop,
|
|
||||||
.start = rs_start,
|
|
||||||
.hangup = rs_hangup,
|
.hangup = rs_hangup,
|
||||||
.wait_until_sent = rs_wait_until_sent,
|
|
||||||
.proc_fops = &rs_proc_fops,
|
.proc_fops = &rs_proc_fops,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user