]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: Endianness issue on dwc3_log_ctrl
authorJohn Youn <johnyoun@synopsys.com>
Mon, 23 May 2016 18:32:47 +0000 (11:32 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:32:43 +0000 (12:32 +0300)
commit0f124c6d6043b5a27792d2303b75a46b9ae248f9
treec8399c4469d711316e5fefe3954ab5a3062c5fec
parent49ff78ecfb16e8c73a32664ea67c432737a2845b
usb: dwc3: Endianness issue on dwc3_log_ctrl

Sparse complains even though it looks ok. Probably it cannot detect that
the wValue, wIndex, and wLength are declared __le16 due to the macro
magic.

Redeclare them as CPU endianness and make the conversion on assignment.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/trace.h