lkml.org 
[lkml]   [2018]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 17/50] usb-serial: begin switching to ->[sg]et_serial()
On Fri, Sep 14, 2018 at 03:39:30PM +0200, Johan Hovold wrote:
> > + if (port->serial->type->get_serial)
> > + return port->serial->type->get_serial(tty, ss);
> > + return -ENOIOCTLCMD;
> > +}
> > +
> > +static int serial_set_serial(struct tty_struct *tty, struct serial_struct *ss)
> > +{
> > + struct usb_serial_port *port = tty->driver_data;
>
> And here.
>
> > + if (port->serial->type->set_serial)
> > + return port->serial->type->get_serial(tty, ss);

... and another cut'n'paste braino - it's set_serial, of course.

\
 
 \ /
  Last update: 2018-09-14 17:25    [W:0.120 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site