usb: chipidea: big-endian support
authorSvetoslav Neykov <svetoslav@neykov.name>
Sat, 30 Mar 2013 10:54:03 +0000 (12:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Mar 2013 15:20:47 +0000 (08:20 -0700)
commit938d323f14480ca8dcb9dbbe48add35a09246d09
tree7587f55fc821abb8940590430270f64f2612e94d
parentefccca4ff59e672a6b50e99f0f4cb61b60d09ec8
usb: chipidea: big-endian support

Convert between big-endian and little-endian format when accessing the usb
controller structures which are little-endian by specification.
Fix cases where the little-endian memory layout is taken for granted.
The patch doesn't have any effect on the already supported little-endian
architectures.

Signed-off-by: Svetoslav Neykov <svetoslav@neykov.name>
[Alex: minor cosmetic fixes]
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/core.c
drivers/usb/chipidea/udc.c