diff options
author | John Youn <johnyoun@synopsys.com> | 2016-05-23 20:32:40 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-06-20 11:32:42 +0200 |
commit | 501058edebf957a3c101c8119c3286e496873840 (patch) | |
tree | 41f47ef830f026a136cd940b86ce128dc580ed35 /drivers/usb/dwc3/ep0.c | |
parent | usb: dwc3: ep0: Fix endianness of wIndex passed to dwc3_wIndex_to_dep (diff) | |
download | linux-501058edebf957a3c101c8119c3286e496873840.tar.xz linux-501058edebf957a3c101c8119c3286e496873840.zip |
usb: dwc3: ep0: Use the correct type for SET_SEL data
u2sel and u2pel should be __le16. Doesn't fix any issue.
Found with sparse.
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/ep0.c')
-rw-r--r-- | drivers/usb/dwc3/ep0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index c814dde27138..93d6cdd9e0c9 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -619,8 +619,8 @@ static void dwc3_ep0_set_sel_cmpl(struct usb_ep *ep, struct usb_request *req) struct timing { u8 u1sel; u8 u1pel; - u16 u2sel; - u16 u2pel; + __le16 u2sel; + __le16 u2pel; } __packed timing; int ret; |