]> oss.titaniummirror.com Git - cp210x.git/commitdiff
Fix type in the call to cp2101_ctlmsg in cp2101_setu16. The value argument
authorsmckown <smckown@986fd584-583e-0410-b54d-b9fe63dff8e5>
Wed, 15 Apr 2009 16:40:38 +0000 (16:40 +0000)
committersmckown <smckown@986fd584-583e-0410-b54d-b9fe63dff8e5>
Wed, 15 Apr 2009 16:40:38 +0000 (16:40 +0000)
should be ORed with 0x3700 and not 3700.

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