mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
complete ->[sg]et_serial() switchover
Reviewed-by: Johan Hovold <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
15cc7bad48
commit
930236a308
2 changed files with 6 additions and 12 deletions
|
|
@ -402,7 +402,7 @@ static int serial_get_serial(struct tty_struct *tty, struct serial_struct *ss)
|
|||
|
||||
if (port->serial->type->get_serial)
|
||||
return port->serial->type->get_serial(tty, ss);
|
||||
return -ENOIOCTLCMD;
|
||||
return -ENOTTY;
|
||||
}
|
||||
|
||||
static int serial_set_serial(struct tty_struct *tty, struct serial_struct *ss)
|
||||
|
|
@ -411,7 +411,7 @@ static int serial_set_serial(struct tty_struct *tty, struct serial_struct *ss)
|
|||
|
||||
if (port->serial->type->set_serial)
|
||||
return port->serial->type->set_serial(tty, ss);
|
||||
return -ENOIOCTLCMD;
|
||||
return -ENOTTY;
|
||||
}
|
||||
|
||||
static int serial_ioctl(struct tty_struct *tty,
|
||||
|
|
|
|||
Loading…
Reference in a new issue