Commit 914d69d6 authored by Jason Cooper's avatar Jason Cooper Committed by Greg Kroah-Hartman

staging: brcm80211: fix "ERROR: space required after that ..."

Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0eeca2f4
...@@ -25,10 +25,10 @@ extern uint32 wl_msg_level; ...@@ -25,10 +25,10 @@ extern uint32 wl_msg_level;
#ifdef BCMDBG #ifdef BCMDBG
#define WL_ERROR(args) do {if ((wl_msg_level & WL_ERROR_VAL)) WL_PRINT(args);} while (0) #define WL_ERROR(args) do {if ((wl_msg_level & WL_ERROR_VAL)) WL_PRINT(args); } while (0)
#define WL_TRACE(args) do {if (wl_msg_level & WL_TRACE_VAL) WL_PRINT(args);} while (0) #define WL_TRACE(args) do {if (wl_msg_level & WL_TRACE_VAL) WL_PRINT(args); } while (0)
#define WL_AMPDU(args) do {if (wl_msg_level & WL_AMPDU_VAL) WL_PRINT(args);} while (0) #define WL_AMPDU(args) do {if (wl_msg_level & WL_AMPDU_VAL) WL_PRINT(args); } while (0)
#define WL_FFPLD(args) do {if (wl_msg_level & WL_FFPLD_VAL) WL_PRINT(args);} while (0) #define WL_FFPLD(args) do {if (wl_msg_level & WL_FFPLD_VAL) WL_PRINT(args); } while (0)
#define WL_ERROR_ON() (wl_msg_level & WL_ERROR_VAL) #define WL_ERROR_ON() (wl_msg_level & WL_ERROR_VAL)
...@@ -44,14 +44,14 @@ extern uint32 wl_msg_level; ...@@ -44,14 +44,14 @@ extern uint32 wl_msg_level;
extern uint32 wl_ampdu_dbg; extern uint32 wl_ampdu_dbg;
#define WL_AMPDU_UPDN(args) do {if (wl_ampdu_dbg & WL_AMPDU_UPDN_VAL) {WL_AMPDU(args);} } while (0) #define WL_AMPDU_UPDN(args) do {if (wl_ampdu_dbg & WL_AMPDU_UPDN_VAL) {WL_AMPDU(args); } } while (0)
#define WL_AMPDU_RX(args) do {if (wl_ampdu_dbg & WL_AMPDU_RX_VAL) {WL_AMPDU(args);} } while (0) #define WL_AMPDU_RX(args) do {if (wl_ampdu_dbg & WL_AMPDU_RX_VAL) {WL_AMPDU(args); } } while (0)
#define WL_AMPDU_ERR(args) do {if (wl_ampdu_dbg & WL_AMPDU_ERR_VAL) {WL_AMPDU(args);} } while (0) #define WL_AMPDU_ERR(args) do {if (wl_ampdu_dbg & WL_AMPDU_ERR_VAL) {WL_AMPDU(args); } } while (0)
#define WL_AMPDU_TX(args) do {if (wl_ampdu_dbg & WL_AMPDU_TX_VAL) {WL_AMPDU(args);} } while (0) #define WL_AMPDU_TX(args) do {if (wl_ampdu_dbg & WL_AMPDU_TX_VAL) {WL_AMPDU(args); } } while (0)
#define WL_AMPDU_CTL(args) do {if (wl_ampdu_dbg & WL_AMPDU_CTL_VAL) {WL_AMPDU(args);} } while (0) #define WL_AMPDU_CTL(args) do {if (wl_ampdu_dbg & WL_AMPDU_CTL_VAL) {WL_AMPDU(args); } } while (0)
#define WL_AMPDU_HW(args) do {if (wl_ampdu_dbg & WL_AMPDU_HW_VAL) {WL_AMPDU(args);} } while (0) #define WL_AMPDU_HW(args) do {if (wl_ampdu_dbg & WL_AMPDU_HW_VAL) {WL_AMPDU(args); } } while (0)
#define WL_AMPDU_HWTXS(args) do {if (wl_ampdu_dbg & WL_AMPDU_HWTXS_VAL) {WL_AMPDU(args);} } while (0) #define WL_AMPDU_HWTXS(args) do {if (wl_ampdu_dbg & WL_AMPDU_HWTXS_VAL) {WL_AMPDU(args); } } while (0)
#define WL_AMPDU_HWDBG(args) do {if (wl_ampdu_dbg & WL_AMPDU_HWDBG_VAL) {WL_AMPDU(args);} } while (0) #define WL_AMPDU_HWDBG(args) do {if (wl_ampdu_dbg & WL_AMPDU_HWDBG_VAL) {WL_AMPDU(args); } } while (0)
#define WL_AMPDU_ERR_ON() (wl_ampdu_dbg & WL_AMPDU_ERR_VAL) #define WL_AMPDU_ERR_ON() (wl_ampdu_dbg & WL_AMPDU_ERR_VAL)
#define WL_AMPDU_HW_ON() (wl_ampdu_dbg & WL_AMPDU_HW_VAL) #define WL_AMPDU_HW_ON() (wl_ampdu_dbg & WL_AMPDU_HW_VAL)
#define WL_AMPDU_HWTXS_ON() (wl_ampdu_dbg & WL_AMPDU_HWTXS_VAL) #define WL_AMPDU_HWTXS_ON() (wl_ampdu_dbg & WL_AMPDU_HWTXS_VAL)
......
...@@ -126,8 +126,8 @@ struct wl_info { ...@@ -126,8 +126,8 @@ struct wl_info {
#define WL_UNLOCK(wl) spin_unlock_bh(&(wl)->lock) #define WL_UNLOCK(wl) spin_unlock_bh(&(wl)->lock)
/* locking from inside wl_isr */ /* locking from inside wl_isr */
#define WL_ISRLOCK(wl, flags) do {spin_lock(&(wl)->isr_lock); (void)(flags);} while (0) #define WL_ISRLOCK(wl, flags) do {spin_lock(&(wl)->isr_lock); (void)(flags); } while (0)
#define WL_ISRUNLOCK(wl, flags) do {spin_unlock(&(wl)->isr_lock); (void)(flags);} while (0) #define WL_ISRUNLOCK(wl, flags) do {spin_unlock(&(wl)->isr_lock); (void)(flags); } while (0)
/* locking under WL_LOCK() to synchronize with wl_isr */ /* locking under WL_LOCK() to synchronize with wl_isr */
#define INT_LOCK(wl, flags) spin_lock_irqsave(&(wl)->isr_lock, flags) #define INT_LOCK(wl, flags) spin_lock_irqsave(&(wl)->isr_lock, flags)
......
...@@ -130,7 +130,7 @@ typedef struct { ...@@ -130,7 +130,7 @@ typedef struct {
#define wlc_key_hw_wowl_init(a, b, c, d) do {} while (0) #define wlc_key_hw_wowl_init(a, b, c, d) do {} while (0)
#define wlc_key_sw_wowl_update(a, b, c, d, e) do {} while (0) #define wlc_key_sw_wowl_update(a, b, c, d, e) do {} while (0)
#define wlc_key_sw_wowl_create(a, b, c) (BCME_ERROR) #define wlc_key_sw_wowl_create(a, b, c) (BCME_ERROR)
#define wlc_key_iv_update(a, b, c, d, e) do {(void)e;} while (0) #define wlc_key_iv_update(a, b, c, d, e) do {(void)e; } while (0)
#define wlc_key_iv_init(a, b, c) do {} while (0) #define wlc_key_iv_init(a, b, c) do {} while (0)
#define wlc_key_set_error(a, b, c) (BCME_ERROR) #define wlc_key_set_error(a, b, c) (BCME_ERROR)
#define wlc_key_dump_hw(a, b) (BCME_ERROR) #define wlc_key_dump_hw(a, b) (BCME_ERROR)
......
...@@ -566,8 +566,8 @@ extern const uint8 wme_fifo2ac[]; ...@@ -566,8 +566,8 @@ extern const uint8 wme_fifo2ac[];
#define WLC_UPDATE_STATS(wlc) 0 /* No stats support */ #define WLC_UPDATE_STATS(wlc) 0 /* No stats support */
#define WLCNTINCR(a) /* No stats support */ #define WLCNTINCR(a) /* No stats support */
#define WLCNTDECR(a) /* No stats support */ #define WLCNTDECR(a) /* No stats support */
#define WLCNTADD(a,delta) /* No stats support */ #define WLCNTADD(a, delta) /* No stats support */
#define WLCNTSET(a,value) /* No stats support */ #define WLCNTSET(a, value) /* No stats support */
#define WLCNTVAL(a) 0 /* No stats support */ #define WLCNTVAL(a) 0 /* No stats support */
/* common functions for every port */ /* common functions for every port */
......
...@@ -201,8 +201,8 @@ struct scb { ...@@ -201,8 +201,8 @@ struct scb {
#define WLCNTSCBINCR(a) /* No stats support */ #define WLCNTSCBINCR(a) /* No stats support */
#define WLCNTSCBDECR(a) /* No stats support */ #define WLCNTSCBDECR(a) /* No stats support */
#define WLCNTSCBADD(a,delta) /* No stats support */ #define WLCNTSCBADD(a, delta) /* No stats support */
#define WLCNTSCBSET(a,value) /* No stats support */ #define WLCNTSCBSET(a, value) /* No stats support */
#define WLCNTSCBVAL(a) 0 /* No stats support */ #define WLCNTSCBVAL(a) 0 /* No stats support */
#define WLCNTSCB_COND_SET(c, a, v) /* No stats support */ #define WLCNTSCB_COND_SET(c, a, v) /* No stats support */
#define WLCNTSCB_COND_ADD(c, a, d) /* No stats support */ #define WLCNTSCB_COND_ADD(c, a, d) /* No stats support */
......
...@@ -149,7 +149,7 @@ static otpinfo_t otpinfo; ...@@ -149,7 +149,7 @@ static otpinfo_t otpinfo;
#define OTPGU_P_SHIFT (OTPGU_HWP_OFF % 16) #define OTPGU_P_SHIFT (OTPGU_HWP_OFF % 16)
/* OTP Size */ /* OTP Size */
#define OTP_SZ_FU_324 ((ROUNDUP(324,8))/8) /* 324 bits */ #define OTP_SZ_FU_324 ((ROUNDUP(324, 8))/8) /* 324 bits */
#define OTP_SZ_FU_288 (288/8) /* 288 bits */ #define OTP_SZ_FU_288 (288/8) /* 288 bits */
#define OTP_SZ_FU_216 (216/8) /* 216 bits */ #define OTP_SZ_FU_216 (216/8) /* 216 bits */
#define OTP_SZ_FU_72 (72/8) /* 72 bits */ #define OTP_SZ_FU_72 (72/8) /* 72 bits */
......
...@@ -1875,7 +1875,8 @@ static const sdiod_drive_str_t BCMINITDATA(sdiod_drive_strength_tab1)[] = { ...@@ -1875,7 +1875,8 @@ static const sdiod_drive_str_t BCMINITDATA(sdiod_drive_strength_tab1)[] = {
4, 0x2}, { 4, 0x2}, {
2, 0x3}, { 2, 0x3}, {
1, 0x0}, { 1, 0x0}, {
0, 0x0} }; 0, 0x0}
};
/* SDIO Drive Strength to sel value table for PMU Rev 2, 3 */ /* SDIO Drive Strength to sel value table for PMU Rev 2, 3 */
static const sdiod_drive_str_t BCMINITDATA(sdiod_drive_strength_tab2)[] = { static const sdiod_drive_str_t BCMINITDATA(sdiod_drive_strength_tab2)[] = {
...@@ -1886,7 +1887,8 @@ static const sdiod_drive_str_t BCMINITDATA(sdiod_drive_strength_tab2)[] = { ...@@ -1886,7 +1887,8 @@ static const sdiod_drive_str_t BCMINITDATA(sdiod_drive_strength_tab2)[] = {
6, 0x4}, { 6, 0x4}, {
4, 0x2}, { 4, 0x2}, {
2, 0x1}, { 2, 0x1}, {
0, 0x0} }; 0, 0x0}
};
/* SDIO Drive Strength to sel value table for PMU Rev 8 (1.8V) */ /* SDIO Drive Strength to sel value table for PMU Rev 8 (1.8V) */
static const sdiod_drive_str_t BCMINITDATA(sdiod_drive_strength_tab3)[] = { static const sdiod_drive_str_t BCMINITDATA(sdiod_drive_strength_tab3)[] = {
...@@ -1898,7 +1900,8 @@ static const sdiod_drive_str_t BCMINITDATA(sdiod_drive_strength_tab3)[] = { ...@@ -1898,7 +1900,8 @@ static const sdiod_drive_str_t BCMINITDATA(sdiod_drive_strength_tab3)[] = {
12, 0x3}, { 12, 0x3}, {
8, 0x2}, { 8, 0x2}, {
4, 0x1}, { 4, 0x1}, {
0, 0x0} }; 0, 0x0}
};
#define SDIOD_DRVSTR_KEY(chip, pmu) (((chip) << 16) | (pmu)) #define SDIOD_DRVSTR_KEY(chip, pmu) (((chip) << 16) | (pmu))
......
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