From: smckown Date: Wed, 15 Apr 2009 16:40:38 +0000 (+0000) Subject: Fix type in the call to cp2101_ctlmsg in cp2101_setu16. The value argument X-Git-Tag: debian/0.11.2-5.2tmi~26 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=cp210x.git;a=commitdiff_plain;h=ba11c730689c3c39fdf69cdda11d45a1c6a1d113 Fix type in the call to cp2101_ctlmsg in cp2101_setu16. The value argument should be ORed with 0x3700 and not 3700. --- 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