summaryrefslogtreecommitdiff
path: root/include/mtd_swab.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mtd_swab.h')
-rw-r--r--include/mtd_swab.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mtd_swab.h b/include/mtd_swab.h
index a5175da..5c76ed5 100644
--- a/include/mtd_swab.h
+++ b/include/mtd_swab.h
@@ -9,10 +9,10 @@
(((uint16_t)(x) & (uint16_t)0xff00U) >> 8) ))
#define swab32(x) \
((uint32_t)( \
- (((uint32_t)(x) & (__u32)0x000000ffUL) << 24) | \
- (((uint32_t)(x) & (__u32)0x0000ff00UL) << 8) | \
- (((uint32_t)(x) & (__u32)0x00ff0000UL) >> 8) | \
- (((uint32_t)(x) & (__u32)0xff000000UL) >> 24) ))
+ (((uint32_t)(x) & (uint32_t)0x000000ffUL) << 24) | \
+ (((uint32_t)(x) & (uint32_t)0x0000ff00UL) << 8) | \
+ (((uint32_t)(x) & (uint32_t)0x00ff0000UL) >> 8) | \
+ (((uint32_t)(x) & (uint32_t)0xff000000UL) >> 24) ))
#if __BYTE_ORDER == __BIG_ENDIAN
#define cpu_to_le16(x) ({ uint16_t _x = x; swab16(_x); })