[PATCH 2/2] pl2303: updates pl2303_update_line_status()

From: Luiz Fernando Capitulino
Date: Fri Nov 11 2005 - 14:25:57 EST



Hi again,

Updates pl2303_update_line_status() to handle X75 and SX1 Siemens mobiles

Signed-off-by: Luiz Capitulino <lcapitulino@xxxxxxxxxxxxxxx>

drivers/usb/serial/pl2303.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff -Nparu -X /home/lcapitulino/tmp/dontdiff a/drivers/usb/serial/pl2303.c a~/drivers/usb/serial/pl2303.c
--- a/drivers/usb/serial/pl2303.c 2005-11-11 16:57:13.000000000 -0200
+++ a~/drivers/usb/serial/pl2303.c 2005-11-11 16:44:48.000000000 -0200
@@ -813,7 +813,9 @@ static void pl2303_update_line_status(st
u8 length = UART_STATE;

if ((le16_to_cpu(port->serial->dev->descriptor.idVendor) == SIEMENS_VENDOR_ID) &&
- (le16_to_cpu(port->serial->dev->descriptor.idProduct) == SIEMENS_PRODUCT_ID_X65)) {
+ (le16_to_cpu(port->serial->dev->descriptor.idProduct) == SIEMENS_PRODUCT_ID_X65 ||
+ 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;
status_idx = 0;
}


--
Luiz Fernando N. Capitulino
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/