aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/brcm80211/include
diff options
context:
space:
mode:
authorArend van Spriel2011-12-12 15:15:00 -0800
committerJohn W. Linville2011-12-13 15:47:58 -0500
commit373c78e19d6c00ff87fc251584d8bab65150e751 (patch)
treedb90a1dea6c0d1d7f7077eb5a16ac893a6eea432 /drivers/net/wireless/brcm80211/include
parentd3126c52eb7f3239b45481facc4078b08ed1027c (diff)
brcm80211: smac: use bcma core access functions in otp.c
The code in otp.c now uses the bcma core access functions to read the OTP information from the device. Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Reviewed-by: Alwin Beukers <alwin@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Franky Lin <frankyl@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/include')
-rw-r--r--drivers/net/wireless/brcm80211/include/chipcommon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/include/chipcommon.h b/drivers/net/wireless/brcm80211/include/chipcommon.h
index fefabc39e646..f96834a7c055 100644
--- a/drivers/net/wireless/brcm80211/include/chipcommon.h
+++ b/drivers/net/wireless/brcm80211/include/chipcommon.h
@@ -19,6 +19,8 @@
#include "defs.h" /* for PAD macro */
+#define CHIPCREGOFFS(field) offsetof(struct chipcregs, field)
+
struct chipcregs {
u32 chipid; /* 0x0 */
u32 capabilities;