Commit 35491d32 authored by Arend van Spriel's avatar Arend van Spriel Committed by Greg Kroah-Hartman

staging: brcm80211: fix checkpatch errors in types.h

The file types.h contains several occurrences of the checkpatch
error "(foo*)" should be "(foo *)". This has been fixed in this
patch.
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Reviewed-by: default avatarRoland Vossen <rvossen@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cc193a4d
...@@ -257,9 +257,9 @@ do { \ ...@@ -257,9 +257,9 @@ do { \
#define R_REG(r) \ #define R_REG(r) \
({\ ({\
sizeof(*(r)) == sizeof(u8) ? \ sizeof(*(r)) == sizeof(u8) ? \
readb((volatile u8*)(r)) : \ readb((u8 *)(r)) : \
sizeof(*(r)) == sizeof(u16) ? readw((volatile u16*)(r)) : \ sizeof(*(r)) == sizeof(u16) ? readw((u16 *)(r)) : \
readl((volatile u32*)(r)); \ readl((u32 *)(r)); \
}) })
#else /* __mips__ */ #else /* __mips__ */
#define R_REG(r) \ #define R_REG(r) \
...@@ -268,14 +268,14 @@ do { \ ...@@ -268,14 +268,14 @@ do { \
__asm__ __volatile__("sync"); \ __asm__ __volatile__("sync"); \
switch (sizeof(*(r))) { \ switch (sizeof(*(r))) { \
case sizeof(u8): \ case sizeof(u8): \
__osl_v = readb((volatile u8*)(r)); \ __osl_v = readb((u8 *)(r)); \
break; \ break; \
case sizeof(u16): \ case sizeof(u16): \
__osl_v = readw((volatile u16*)(r)); \ __osl_v = readw((u16 *)(r)); \
break; \ break; \
case sizeof(u32): \ case sizeof(u32): \
__osl_v = \ __osl_v = \
readl((volatile u32*)(r)); \ readl((u32 *)(r)); \
break; \ break; \
} \ } \
__asm__ __volatile__("sync"); \ __asm__ __volatile__("sync"); \
...@@ -286,11 +286,11 @@ do { \ ...@@ -286,11 +286,11 @@ do { \
#define W_REG(r, v) do { \ #define W_REG(r, v) do { \
switch (sizeof(*(r))) { \ switch (sizeof(*(r))) { \
case sizeof(u8): \ case sizeof(u8): \
writeb((u8)(v), (volatile u8*)(r)); break; \ writeb((u8)(v), (u8 *)(r)); break; \
case sizeof(u16): \ case sizeof(u16): \
writew((u16)(v), (volatile u16*)(r)); break; \ writew((u16)(v), (u16 *)(r)); break; \
case sizeof(u32): \ case sizeof(u32): \
writel((u32)(v), (volatile u32*)(r)); break; \ writel((u32)(v), (u32 *)(r)); break; \
}; \ }; \
} while (0) } while (0)
#else /* __BIG_ENDIAN */ #else /* __BIG_ENDIAN */
...@@ -300,14 +300,14 @@ do { \ ...@@ -300,14 +300,14 @@ do { \
switch (sizeof(*(r))) { \ switch (sizeof(*(r))) { \
case sizeof(u8): \ case sizeof(u8): \
__osl_v = \ __osl_v = \
readb((volatile u8*)((r)^3)); \ readb((u8 *)((r)^3)); \
break; \ break; \
case sizeof(u16): \ case sizeof(u16): \
__osl_v = \ __osl_v = \
readw((volatile u16*)((r)^2)); \ readw((u16 *)((r)^2)); \
break; \ break; \
case sizeof(u32): \ case sizeof(u32): \
__osl_v = readl((volatile u32*)(r)); \ __osl_v = readl((u32 *)(r)); \
break; \ break; \
} \ } \
__osl_v; \ __osl_v; \
...@@ -317,13 +317,13 @@ do { \ ...@@ -317,13 +317,13 @@ do { \
switch (sizeof(*(r))) { \ switch (sizeof(*(r))) { \
case sizeof(u8): \ case sizeof(u8): \
writeb((u8)(v), \ writeb((u8)(v), \
(volatile u8*)((r)^3)); break; \ (u8 *)((r)^3)); break; \
case sizeof(u16): \ case sizeof(u16): \
writew((u16)(v), \ writew((u16)(v), \
(volatile u16*)((r)^2)); break; \ (u16 *)((r)^2)); break; \
case sizeof(u32): \ case sizeof(u32): \
writel((u32)(v), \ writel((u32)(v), \
(volatile u32*)(r)); break; \ (u32 *)(r)); break; \
} \ } \
} while (0) } while (0)
#endif /* __BIG_ENDIAN */ #endif /* __BIG_ENDIAN */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment