diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-09-12 03:56:47 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-09-14 17:19:46 +0200 |
commit | 617a281104bd37ad88c2758f92e9be84cac5d123 (patch) | |
tree | 228360c76d1b31abb4ed429f8a709773c15a4045 /arch/ia64/hp | |
parent | tty_ioctl(): start taking TIOC[SG]SERIAL into separate methods (diff) | |
download | linux-617a281104bd37ad88c2758f92e9be84cac5d123.tar.xz linux-617a281104bd37ad88c2758f92e9be84cac5d123.zip |
simserial: switch to ->[sg]et_serial()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/ia64/hp')
-rw-r--r-- | arch/ia64/hp/sim/simserial.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c index 663388a73d4e..de5e69162ad5 100644 --- a/arch/ia64/hp/sim/simserial.c +++ b/arch/ia64/hp/sim/simserial.c @@ -297,18 +297,25 @@ static void rs_unthrottle(struct tty_struct * tty) 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) { - if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) && - (cmd != TIOCSERCONFIG) && (cmd != TIOCSERGSTRUCT) && + if ((cmd != TIOCSERCONFIG) && (cmd != TIOCSERGSTRUCT) && (cmd != TIOCMIWAIT)) { if (tty_io_error(tty)) return -EIO; } switch (cmd) { - case TIOCGSERIAL: - case TIOCSSERIAL: case TIOCSERGSTRUCT: case TIOCMIWAIT: return 0; @@ -448,6 +455,8 @@ static const struct tty_operations hp_ops = { .throttle = rs_throttle, .unthrottle = rs_unthrottle, .send_xchar = rs_send_xchar, + .set_serial = rs_setserial, + .get_serial = rs_getserial, .hangup = rs_hangup, .proc_show = rs_proc_show, }; |