summaryrefslogtreecommitdiffstats
path: root/include/usb
diff options
context:
space:
mode:
authorKrzysztof Halasa <khc@pm.waw.pl>2010-12-21 00:14:12 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2010-12-21 09:02:41 +0100
commit29ca79d0d58ff7593fd6508d9fa9625f59c93310 (patch)
tree3f6ed943e419e974628a1faabbb1c3c5b6052cb2 /include/usb
parent72e94e73732693cc1f4a2735afd155a00834be21 (diff)
downloadbarebox-29ca79d0d58ff7593fd6508d9fa9625f59c93310.tar.gz
barebox-29ca79d0d58ff7593fd6508d9fa9625f59c93310.tar.xz
Fix usage of __LITTLE_ENDIAN macro.
Fix usage of __LITTLE_ENDIAN macro. Both __LITTLE_ENDIAN and __BIG_ENDIAN are always defined by include/linux/byteorder/generic.h, checking for their existence is pointless. Signed-off-by: Krzysztof HaƂasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb')
-rw-r--r--include/usb/usb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/usb/usb.h b/include/usb/usb.h
index 790d64da73..1b936ecab4 100644
--- a/include/usb/usb.h
+++ b/include/usb/usb.h
@@ -267,7 +267,7 @@ int usb_set_interface(struct usb_device *dev, int interface, int alternate);
((x_ & 0xFF000000UL) >> 24)); \
})
-#ifdef __LITTLE_ENDIAN
+#if __BYTE_ORDER == __LITTLE_ENDIAN
# define swap_16(x) (x)
# define swap_32(x) (x)
#else