Commit 92246bcb authored by Arend van Spriel's avatar Arend van Spriel Committed by Greg Kroah-Hartman

staging: brcm80211: remove redundant CHIPTYPE macro

The CHIPTYPE macro simply expands to the macro argument so it is
redundant and as such removed.
Reviewed-by: default avatarRoland Vossen <rvossen@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c523ea78
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
#define SPI_BUS 6 /* gSPI target */ #define SPI_BUS 6 /* gSPI target */
#define RPC_BUS 7 /* RPC target */ #define RPC_BUS 7 /* RPC target */
#define CHIPTYPE(bus) (bus)
#define CHIPID(chip) (chip) #define CHIPID(chip) (chip)
#define CHIPREV(rev) (rev) #define CHIPREV(rev) (rev)
......
...@@ -568,7 +568,7 @@ static si_info_t *si_doattach(si_info_t *sii, uint devid, struct osl_info *osh, ...@@ -568,7 +568,7 @@ static si_info_t *si_doattach(si_info_t *sii, uint devid, struct osl_info *osh,
sih->issim = IS_SIM(sih->chippkg); sih->issim = IS_SIM(sih->chippkg);
/* scan for cores */ /* scan for cores */
if (CHIPTYPE(sii->pub.socitype) == SOCI_AI) { if (sii->pub.socitype == SOCI_AI) {
SI_MSG(("Found chip type AI (0x%08x)\n", w)); SI_MSG(("Found chip type AI (0x%08x)\n", w));
/* pass chipc address instead of original core base */ /* pass chipc address instead of original core base */
ai_scan(&sii->pub, (void *)cc, devid); ai_scan(&sii->pub, (void *)cc, devid);
...@@ -765,7 +765,7 @@ void si_deregister_intr_callback(si_t *sih) ...@@ -765,7 +765,7 @@ void si_deregister_intr_callback(si_t *sih)
uint si_flag(si_t *sih) uint si_flag(si_t *sih)
{ {
if (CHIPTYPE(sih->socitype) == SOCI_AI) if (sih->socitype == SOCI_AI)
return ai_flag(sih); return ai_flag(sih);
else { else {
ASSERT(0); ASSERT(0);
...@@ -775,7 +775,7 @@ uint si_flag(si_t *sih) ...@@ -775,7 +775,7 @@ uint si_flag(si_t *sih)
void si_setint(si_t *sih, int siflag) void si_setint(si_t *sih, int siflag)
{ {
if (CHIPTYPE(sih->socitype) == SOCI_AI) if (sih->socitype == SOCI_AI)
ai_setint(sih, siflag); ai_setint(sih, siflag);
else else
ASSERT(0); ASSERT(0);
...@@ -807,7 +807,7 @@ bool si_backplane64(si_t *sih) ...@@ -807,7 +807,7 @@ bool si_backplane64(si_t *sih)
#ifndef BCMSDIO #ifndef BCMSDIO
uint si_corerev(si_t *sih) uint si_corerev(si_t *sih)
{ {
if (CHIPTYPE(sih->socitype) == SOCI_AI) if (sih->socitype == SOCI_AI)
return ai_corerev(sih); return ai_corerev(sih);
else { else {
ASSERT(0); ASSERT(0);
...@@ -850,7 +850,7 @@ void *si_setcore(si_t *sih, uint coreid, uint coreunit) ...@@ -850,7 +850,7 @@ void *si_setcore(si_t *sih, uint coreid, uint coreunit)
if (!GOODIDX(idx)) if (!GOODIDX(idx))
return NULL; return NULL;
if (CHIPTYPE(sih->socitype) == SOCI_AI) if (sih->socitype == SOCI_AI)
return ai_setcoreidx(sih, idx); return ai_setcoreidx(sih, idx);
else { else {
#ifdef BCMSDIO #ifdef BCMSDIO
...@@ -865,7 +865,7 @@ void *si_setcore(si_t *sih, uint coreid, uint coreunit) ...@@ -865,7 +865,7 @@ void *si_setcore(si_t *sih, uint coreid, uint coreunit)
#ifndef BCMSDIO #ifndef BCMSDIO
void *si_setcoreidx(si_t *sih, uint coreidx) void *si_setcoreidx(si_t *sih, uint coreidx)
{ {
if (CHIPTYPE(sih->socitype) == SOCI_AI) if (sih->socitype == SOCI_AI)
return ai_setcoreidx(sih, coreidx); return ai_setcoreidx(sih, coreidx);
else { else {
ASSERT(0); ASSERT(0);
...@@ -917,7 +917,7 @@ void si_restore_core(si_t *sih, uint coreid, uint intr_val) ...@@ -917,7 +917,7 @@ void si_restore_core(si_t *sih, uint coreid, uint intr_val)
u32 si_core_cflags(si_t *sih, u32 mask, u32 val) u32 si_core_cflags(si_t *sih, u32 mask, u32 val)
{ {
if (CHIPTYPE(sih->socitype) == SOCI_AI) if (sih->socitype == SOCI_AI)
return ai_core_cflags(sih, mask, val); return ai_core_cflags(sih, mask, val);
else { else {
ASSERT(0); ASSERT(0);
...@@ -927,7 +927,7 @@ u32 si_core_cflags(si_t *sih, u32 mask, u32 val) ...@@ -927,7 +927,7 @@ u32 si_core_cflags(si_t *sih, u32 mask, u32 val)
u32 si_core_sflags(si_t *sih, u32 mask, u32 val) u32 si_core_sflags(si_t *sih, u32 mask, u32 val)
{ {
if (CHIPTYPE(sih->socitype) == SOCI_AI) if (sih->socitype == SOCI_AI)
return ai_core_sflags(sih, mask, val); return ai_core_sflags(sih, mask, val);
else { else {
ASSERT(0); ASSERT(0);
...@@ -937,7 +937,7 @@ u32 si_core_sflags(si_t *sih, u32 mask, u32 val) ...@@ -937,7 +937,7 @@ u32 si_core_sflags(si_t *sih, u32 mask, u32 val)
bool si_iscoreup(si_t *sih) bool si_iscoreup(si_t *sih)
{ {
if (CHIPTYPE(sih->socitype) == SOCI_AI) if (sih->socitype == SOCI_AI)
return ai_iscoreup(sih); return ai_iscoreup(sih);
else { else {
#ifdef BCMSDIO #ifdef BCMSDIO
...@@ -952,7 +952,7 @@ bool si_iscoreup(si_t *sih) ...@@ -952,7 +952,7 @@ bool si_iscoreup(si_t *sih)
void si_write_wrapperreg(si_t *sih, u32 offset, u32 val) void si_write_wrapperreg(si_t *sih, u32 offset, u32 val)
{ {
/* only for 4319, no requirement for SOCI_SB */ /* only for 4319, no requirement for SOCI_SB */
if (CHIPTYPE(sih->socitype) == SOCI_AI) { if (sih->socitype == SOCI_AI) {
ai_write_wrap_reg(sih, offset, val); ai_write_wrap_reg(sih, offset, val);
} }
} }
...@@ -960,7 +960,7 @@ void si_write_wrapperreg(si_t *sih, u32 offset, u32 val) ...@@ -960,7 +960,7 @@ void si_write_wrapperreg(si_t *sih, u32 offset, u32 val)
uint si_corereg(si_t *sih, uint coreidx, uint regoff, uint mask, uint val) uint si_corereg(si_t *sih, uint coreidx, uint regoff, uint mask, uint val)
{ {
if (CHIPTYPE(sih->socitype) == SOCI_AI) if (sih->socitype == SOCI_AI)
return ai_corereg(sih, coreidx, regoff, mask, val); return ai_corereg(sih, coreidx, regoff, mask, val);
else { else {
#ifdef BCMSDIO #ifdef BCMSDIO
...@@ -975,7 +975,7 @@ uint si_corereg(si_t *sih, uint coreidx, uint regoff, uint mask, uint val) ...@@ -975,7 +975,7 @@ uint si_corereg(si_t *sih, uint coreidx, uint regoff, uint mask, uint val)
void si_core_disable(si_t *sih, u32 bits) void si_core_disable(si_t *sih, u32 bits)
{ {
if (CHIPTYPE(sih->socitype) == SOCI_AI) if (sih->socitype == SOCI_AI)
ai_core_disable(sih, bits); ai_core_disable(sih, bits);
#ifdef BCMSDIO #ifdef BCMSDIO
else else
...@@ -985,7 +985,7 @@ void si_core_disable(si_t *sih, u32 bits) ...@@ -985,7 +985,7 @@ void si_core_disable(si_t *sih, u32 bits)
void si_core_reset(si_t *sih, u32 bits, u32 resetbits) void si_core_reset(si_t *sih, u32 bits, u32 resetbits)
{ {
if (CHIPTYPE(sih->socitype) == SOCI_AI) if (sih->socitype == SOCI_AI)
ai_core_reset(sih, bits, resetbits); ai_core_reset(sih, bits, resetbits);
#ifdef BCMSDIO #ifdef BCMSDIO
else else
......
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