summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStanislav Fomichev <kernel@fomichev.me>2011-02-20 21:43:34 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-23 14:07:00 -0800
commit458b2e4df48ea3d09f3cca952379cbf98668c0b3 (patch)
tree1ca93f941a7f7f4094fadb9658162e0ca698281c /drivers
parent56dfe3c71b3c982b8c23e38a04bc68d6e57b482e (diff)
staging: brcm80211: remove unused broadcom byte swapping macroses
- BCMSWAP32 - bcmswap32 - BCMSWAP32BY16 - bcmswap32by16 Signed-off-by: Stanislav Fomichev <kernel@fomichev.me> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/brcm80211/include/bcmendian.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/staging/brcm80211/include/bcmendian.h b/drivers/staging/brcm80211/include/bcmendian.h
index a22116ae5f81..61c4edb98046 100644
--- a/drivers/staging/brcm80211/include/bcmendian.h
+++ b/drivers/staging/brcm80211/include/bcmendian.h
@@ -22,18 +22,6 @@
((u16)((((u16)(val) & (u16)0x00ffU) << 8) | \
(((u16)(val) & (u16)0xff00U) >> 8)))
-/* Reverse the bytes in a 32-bit value */
-#define BCMSWAP32(val) \
- ((u32)((((u32)(val) & (u32)0x000000ffU) << 24) | \
- (((u32)(val) & (u32)0x0000ff00U) << 8) | \
- (((u32)(val) & (u32)0x00ff0000U) >> 8) | \
- (((u32)(val) & (u32)0xff000000U) >> 24)))
-
-/* Reverse the two 16-bit halves of a 32-bit value */
-#define BCMSWAP32BY16(val) \
- ((u32)((((u32)(val) & (u32)0x0000ffffU) << 16) | \
- (((u32)(val) & (u32)0xffff0000U) >> 16)))
-
#ifndef IL_BIGENDIAN
#define ltoh16_buf(buf, i)
#define htol16_buf(buf, i)
@@ -53,16 +41,6 @@
BCMSWAP16(_val); \
})
-#define bcmswap32(val) ({ \
- u32 _val = (val); \
- BCMSWAP32(_val); \
-})
-
-#define bcmswap32by16(val) ({ \
- u32 _val = (val); \
- BCMSWAP32BY16(_val); \
-})
-
#define bcmswap16_buf(buf, len) ({ \
u16 *_buf = (u16 *)(buf); \
uint _wds = (len) / 2; \
@@ -80,16 +58,6 @@ static inline u16 bcmswap16(u16 val)
return BCMSWAP16(val);
}
-static inline u32 bcmswap32(u32 val)
-{
- return BCMSWAP32(val);
-}
-
-static inline u32 bcmswap32by16(u32 val)
-{
- return BCMSWAP32BY16(val);
-}
-
/* Reverse pairs of bytes in a buffer (not for high-performance use) */
/* buf - start of buffer of shorts to swap */
/* len - byte length of buffer */