diff options
author | Thiago Galesi <thiagogalesi@gmail.com> | 2006-07-29 09:47:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 14:58:51 -0400 |
commit | 9c53761681497d598a31ed2f6b29b5b3480c49db (patch) | |
tree | ee020e9b5278ba83ca4a0c169d80a0b4d7a7675b /drivers/usb/serial/pl2303.c | |
parent | 572d3138eb0cf17a2bf36944cc1d2c753578862e (diff) |
USB: pl2303: cosmetic changes to quirk
Cosmetic changes to quirk in pl2303_update_line_status
Signed-off-by: Thiago Galesi <thiagogalesi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/pl2303.c')
-rw-r--r-- | drivers/usb/serial/pl2303.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index e2d8f9b94eed..51caf8a61463 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -920,13 +920,20 @@ static void pl2303_update_line_status(struct usb_serial_port *port, | |||
920 | unsigned long flags; | 920 | unsigned long flags; |
921 | u8 status_idx = UART_STATE; | 921 | u8 status_idx = UART_STATE; |
922 | u8 length = UART_STATE + 1; | 922 | u8 length = UART_STATE + 1; |
923 | u16 idv, idp; | ||
923 | 924 | ||
924 | if ((le16_to_cpu(port->serial->dev->descriptor.idVendor) == SIEMENS_VENDOR_ID) && | 925 | idv = le16_to_cpu(port->serial->dev->descriptor.idVendor); |
925 | (le16_to_cpu(port->serial->dev->descriptor.idProduct) == SIEMENS_PRODUCT_ID_X65 || | 926 | idp = le16_to_cpu(port->serial->dev->descriptor.idProduct); |
926 | le16_to_cpu(port->serial->dev->descriptor.idProduct) == SIEMENS_PRODUCT_ID_SX1 || | 927 | |
927 | le16_to_cpu(port->serial->dev->descriptor.idProduct) == SIEMENS_PRODUCT_ID_X75)) { | 928 | |
928 | length = 1; | 929 | if (idv == SIEMENS_VENDOR_ID) { |
929 | status_idx = 0; | 930 | if (idp == SIEMENS_PRODUCT_ID_X65 || |
931 | idp == SIEMENS_PRODUCT_ID_SX1 || | ||
932 | idp == SIEMENS_PRODUCT_ID_X75) { | ||
933 | |||
934 | length = 1; | ||
935 | status_idx = 0; | ||
936 | } | ||
930 | } | 937 | } |
931 | 938 | ||
932 | if (actual_length < length) | 939 | if (actual_length < length) |