]> oss.titaniummirror.com Git - cp210x.git/blobdiff - src/cp2101.c
Fix type in the call to cp2101_ctlmsg in cp2101_setu16. The value argument
[cp210x.git] / src / cp2101.c
index 53dd422b1f16d1065bb647e0447c9c1237691389..f9433a17af41e7c98fe1b8c5af94180389d2ec67 100644 (file)
@@ -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