Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338698
b: refs/heads/master
c: 56be1a1
h: refs/heads/master
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Nov 21, 2012
1 parent 01b1d85 commit 4890945
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 70d25eeeba1b7e471fc4e05ad0d8c451aab3cf5e
refs/heads/master: 56be1a17d76d8517fe56e0e3da63d1d203b45d1e
7 changes: 3 additions & 4 deletions trunk/drivers/usb/serial/opticon.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ static int opticon_tiocmset(struct tty_struct *tty,
return ret;
}

static int get_serial_info(struct opticon_private *priv,
static int get_serial_info(struct usb_serial_port *port,
struct serial_struct __user *serial)
{
struct serial_struct tmp;
Expand All @@ -437,7 +437,7 @@ static int get_serial_info(struct opticon_private *priv,

/* fake emulate a 16550 uart to make userspace code happy */
tmp.type = PORT_16550A;
tmp.line = priv->port->serial->minor;
tmp.line = port->serial->minor;
tmp.port = 0;
tmp.irq = 0;
tmp.flags = ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ;
Expand All @@ -455,13 +455,12 @@ static int opticon_ioctl(struct tty_struct *tty,
unsigned int cmd, unsigned long arg)
{
struct usb_serial_port *port = tty->driver_data;
struct opticon_private *priv = usb_get_serial_port_data(port);

dev_dbg(&port->dev, "%s - port %d, cmd = 0x%x\n", __func__, port->number, cmd);

switch (cmd) {
case TIOCGSERIAL:
return get_serial_info(priv,
return get_serial_info(port,
(struct serial_struct __user *)arg);
}

Expand Down

0 comments on commit 4890945

Please sign in to comment.