Commit 617a2811 authored by Al Viro's avatar Al Viro

simserial: switch to ->[sg]et_serial()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 2f46a2c1
...@@ -297,18 +297,25 @@ static void rs_unthrottle(struct tty_struct * tty) ...@@ -297,18 +297,25 @@ static void rs_unthrottle(struct tty_struct * tty)
printk(KERN_INFO "simrs_unthrottle called\n"); printk(KERN_INFO "simrs_unthrottle called\n");
} }
static int rs_setserial(struct tty_struct *tty, struct serial_struct *ss)
{
return 0;
}
static int rs_getserial(struct tty_struct *tty, struct serial_struct *ss)
{
return 0;
}
static int rs_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) static int rs_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
{ {
if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) && if ((cmd != TIOCSERCONFIG) && (cmd != TIOCSERGSTRUCT) &&
(cmd != TIOCSERCONFIG) && (cmd != TIOCSERGSTRUCT) &&
(cmd != TIOCMIWAIT)) { (cmd != TIOCMIWAIT)) {
if (tty_io_error(tty)) if (tty_io_error(tty))
return -EIO; return -EIO;
} }
switch (cmd) { switch (cmd) {
case TIOCGSERIAL:
case TIOCSSERIAL:
case TIOCSERGSTRUCT: case TIOCSERGSTRUCT:
case TIOCMIWAIT: case TIOCMIWAIT:
return 0; return 0;
...@@ -448,6 +455,8 @@ static const struct tty_operations hp_ops = { ...@@ -448,6 +455,8 @@ static const struct tty_operations hp_ops = {
.throttle = rs_throttle, .throttle = rs_throttle,
.unthrottle = rs_unthrottle, .unthrottle = rs_unthrottle,
.send_xchar = rs_send_xchar, .send_xchar = rs_send_xchar,
.set_serial = rs_setserial,
.get_serial = rs_getserial,
.hangup = rs_hangup, .hangup = rs_hangup,
.proc_show = rs_proc_show, .proc_show = rs_proc_show,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment