usb: chipidea: Properly mark little endian descriptors
authorStephen Boyd <stephen.boyd@linaro.org>
Wed, 14 Sep 2016 05:53:02 +0000 (22:53 -0700)
committerPeter Chen <peter.chen@nxp.com>
Mon, 14 Nov 2016 02:03:40 +0000 (10:03 +0800)
commit34445fb4333f47674e988b98a587195ffa84beae
treebfa83716e8ce18fe827f9d7d441930677614094a
parentbb2d387c4d90f5b400b94a0fcb5aaef31dfc0789
usb: chipidea: Properly mark little endian descriptors

The DMA descriptors are little endian, and we do a pretty good
job of handling them with the proper le32_to_cpu() markings, but
we don't actually mark them as __le32. This means checkers like
sparse can't easily find new bugs. Let's mark the members of
structures properly and fix the few places where we're missing
conversions.

Cc: Peter Chen <peter.chen@nxp.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/udc.c
drivers/usb/chipidea/udc.h