mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
USB: opticon: remove private usb-serial data
Remove redundant usb-serial field from private data. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b0f4765ae0
commit
37203d6f1d
@ -40,7 +40,6 @@ MODULE_DEVICE_TABLE(usb, id_table);
|
|||||||
|
|
||||||
/* This structure holds all of the individual device information */
|
/* This structure holds all of the individual device information */
|
||||||
struct opticon_private {
|
struct opticon_private {
|
||||||
struct usb_serial *serial;
|
|
||||||
struct usb_serial_port *port;
|
struct usb_serial_port *port;
|
||||||
unsigned char *bulk_in_buffer;
|
unsigned char *bulk_in_buffer;
|
||||||
struct urb *bulk_read_urb;
|
struct urb *bulk_read_urb;
|
||||||
@ -438,7 +437,7 @@ static int get_serial_info(struct opticon_private *priv,
|
|||||||
|
|
||||||
/* fake emulate a 16550 uart to make userspace code happy */
|
/* fake emulate a 16550 uart to make userspace code happy */
|
||||||
tmp.type = PORT_16550A;
|
tmp.type = PORT_16550A;
|
||||||
tmp.line = priv->serial->minor;
|
tmp.line = priv->port->serial->minor;
|
||||||
tmp.port = 0;
|
tmp.port = 0;
|
||||||
tmp.irq = 0;
|
tmp.irq = 0;
|
||||||
tmp.flags = ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ;
|
tmp.flags = ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ;
|
||||||
@ -484,7 +483,6 @@ static int opticon_startup(struct usb_serial *serial)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
spin_lock_init(&priv->lock);
|
spin_lock_init(&priv->lock);
|
||||||
priv->serial = serial;
|
|
||||||
priv->port = serial->port[0];
|
priv->port = serial->port[0];
|
||||||
|
|
||||||
/* find our bulk endpoint */
|
/* find our bulk endpoint */
|
||||||
|
Loading…
Reference in New Issue
Block a user