Commit 9c537616 authored by Thiago Galesi's avatar Thiago Galesi Committed by Greg Kroah-Hartman

USB: pl2303: cosmetic changes to quirk

Cosmetic changes to quirk in pl2303_update_line_status
Signed-off-by: default avatarThiago Galesi <thiagogalesi@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 572d3138
...@@ -920,13 +920,20 @@ static void pl2303_update_line_status(struct usb_serial_port *port, ...@@ -920,13 +920,20 @@ static void pl2303_update_line_status(struct usb_serial_port *port,
unsigned long flags; unsigned long flags;
u8 status_idx = UART_STATE; u8 status_idx = UART_STATE;
u8 length = UART_STATE + 1; u8 length = UART_STATE + 1;
u16 idv, idp;
if ((le16_to_cpu(port->serial->dev->descriptor.idVendor) == SIEMENS_VENDOR_ID) && idv = le16_to_cpu(port->serial->dev->descriptor.idVendor);
(le16_to_cpu(port->serial->dev->descriptor.idProduct) == SIEMENS_PRODUCT_ID_X65 || idp = le16_to_cpu(port->serial->dev->descriptor.idProduct);
le16_to_cpu(port->serial->dev->descriptor.idProduct) == SIEMENS_PRODUCT_ID_SX1 ||
le16_to_cpu(port->serial->dev->descriptor.idProduct) == SIEMENS_PRODUCT_ID_X75)) {
length = 1; if (idv == SIEMENS_VENDOR_ID) {
status_idx = 0; if (idp == SIEMENS_PRODUCT_ID_X65 ||
idp == SIEMENS_PRODUCT_ID_SX1 ||
idp == SIEMENS_PRODUCT_ID_X75) {
length = 1;
status_idx = 0;
}
} }
if (actual_length < length) if (actual_length < length)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment