]> git.neil.brown.name Git - history.git/commitdiff
USB: fix sparse warnings in io_ti.c
authorGreg Kroah-Hartman <greg@kroah.com>
Fri, 12 Nov 2004 06:29:37 +0000 (22:29 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 12 Nov 2004 06:29:37 +0000 (22:29 -0800)
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/serial/io_ti.c
drivers/usb/serial/io_usbvend.h

index 799b5535f2d9f9a0a0bde353cb53bd58d34e8265..bd86f7e7c3574c786322037aeb5e0b1a654b1d5c 100644 (file)
@@ -377,7 +377,7 @@ static int TIReadDownloadMemory(struct usb_device *dev, int start_address,
                status = TIReadVendorRequestSync (dev,
                                                  UMPC_MEMORY_READ,     // Request
                                                  (__u16)address_type,  // wValue (Address type)
-                                                 be_start_address,     // wIndex (Address to read)
+                                                 (__force __u16)be_start_address,      // wIndex (Address to read)
                                                  buffer,               // TransferBuffer
                                                  read_length); // TransferBufferLength
 
@@ -491,7 +491,7 @@ static int TIWriteDownloadI2C (struct edgeport_serial *serial, int start_address
        status = TISendVendorRequestSync (serial->serial->dev,
                                        UMPC_MEMORY_WRITE,      // Request
                                        (__u16)address_type,    // wValue
-                                       be_start_address,       // wIndex
+                                       (__force __u16)be_start_address,        // wIndex
                                        buffer,                 // TransferBuffer
                                        write_length);
        if (status) {
@@ -518,7 +518,7 @@ static int TIWriteDownloadI2C (struct edgeport_serial *serial, int start_address
                status = TISendVendorRequestSync (serial->serial->dev,
                                                UMPC_MEMORY_WRITE,      // Request
                                                (__u16)address_type,    // wValue
-                                               be_start_address,       // wIndex
+                                               (__force __u16)be_start_address,        // wIndex
                                                buffer,                 // TransferBuffer
                                                write_length);          // TransferBufferLength
                if (status) {
index 65073409f8c06670a2bce362767706bf2ef20721..8c1fa5e722b1a86785b6e537cd50bb45d62e4651 100644 (file)
@@ -619,7 +619,7 @@ struct watchport_firmware_version
 // Structure of header of download image in fw_down.h
 struct ti_i2c_image_header
 {
-       __u16   Length;
+       __le16  Length;
        __u8    CheckSum;
 }__attribute__((packed));