From ba11c730689c3c39fdf69cdda11d45a1c6a1d113 Mon Sep 17 00:00:00 2001 From: smckown Date: Wed, 15 Apr 2009 16:40:38 +0000 Subject: [PATCH] Fix type in the call to cp2101_ctlmsg in cp2101_setu16. The value argument should be ORed with 0x3700 and not 3700. --- src/cp2101.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cp2101.c b/src/cp2101.c index 53dd422..f9433a1 100644 --- a/src/cp2101.c +++ b/src/cp2101.c @@ -527,7 +527,8 @@ static int cp2101_get_partnum(struct usb_serial_port *port) inline int cp2101_setu16(struct usb_serial_port *port, int cmd, unsigned int value) { - return cp2101_ctlmsg(port, 0xff, 0x40, 3700 | (cmd & 0xff), value, 0, 0); + return cp2101_ctlmsg(port, 0xff, 0x40, 0x3700 | (cmd & 0xff), + value, 0, 0); } /* Populates usbstr with: (len) + (0x03) + unicode(str). Each char in str -- 2.39.2