diff options
author | Peter Chen <peter.chen@nxp.com> | 2020-06-03 14:53:55 +0800 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2020-07-09 10:13:07 +0300 |
commit | 65b7cf48c211ece5e2560a334eb9608e48775a8f (patch) | |
tree | d3f9a1b1934b028c2e1570b50dee442621c98ea3 /drivers/usb/cdns3 | |
parent | 9f81d45c79271def8a9b90447b04b9c6323291f9 (diff) |
usb: cdns3: trace: fix some endian issues
It is found by sparse.
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3')
-rw-r--r-- | drivers/usb/cdns3/trace.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/cdns3/trace.h b/drivers/usb/cdns3/trace.h index 755c56582257..0a2a3269bfac 100644 --- a/drivers/usb/cdns3/trace.h +++ b/drivers/usb/cdns3/trace.h @@ -404,9 +404,9 @@ DECLARE_EVENT_CLASS(cdns3_log_trb, TP_fast_assign( __assign_str(name, priv_ep->name); __entry->trb = trb; - __entry->buffer = trb->buffer; - __entry->length = trb->length; - __entry->control = trb->control; + __entry->buffer = le32_to_cpu(trb->buffer); + __entry->length = le32_to_cpu(trb->length); + __entry->control = le32_to_cpu(trb->control); __entry->type = usb_endpoint_type(priv_ep->endpoint.desc); __entry->last_stream_id = priv_ep->last_stream_id; ), |