Commit 425d94d0 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix sparse warnings in io_ti.c

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 39cd5d1a
......@@ -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) {
......
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment