diff options
author | Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com> | 2010-02-22 01:38:25 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-09 15:02:58 -0500 |
commit | 760d969f9e91a734161a5979a3b3818062e80b7e (patch) | |
tree | 8c2e639dcc97990fc6d21a656c206e0c9e8d2bdc /drivers/net/wireless/wl12xx/wl1271_io.c | |
parent | b42f91ba49ff135392b8f6140e21f85fb0467285 (diff) |
wl1271: Removed wl1271_spi.h and made some functions static
Removed wl1271_spi.h header as there's no more need to access functions
declared there outside of wl1271_spi.c. Also made those SPI access
functions static.
Signed-off-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_io.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_io.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_io.c b/drivers/net/wireless/wl12xx/wl1271_io.c index c0826585a497..c8759acef131 100644 --- a/drivers/net/wireless/wl12xx/wl1271_io.c +++ b/drivers/net/wireless/wl12xx/wl1271_io.c | |||
@@ -28,9 +28,21 @@ | |||
28 | 28 | ||
29 | #include "wl1271.h" | 29 | #include "wl1271.h" |
30 | #include "wl12xx_80211.h" | 30 | #include "wl12xx_80211.h" |
31 | #include "wl1271_spi.h" | ||
32 | #include "wl1271_io.h" | 31 | #include "wl1271_io.h" |
33 | 32 | ||
33 | #define OCP_CMD_LOOP 32 | ||
34 | |||
35 | #define OCP_CMD_WRITE 0x1 | ||
36 | #define OCP_CMD_READ 0x2 | ||
37 | |||
38 | #define OCP_READY_MASK BIT(18) | ||
39 | #define OCP_STATUS_MASK (BIT(16) | BIT(17)) | ||
40 | |||
41 | #define OCP_STATUS_NO_RESP 0x00000 | ||
42 | #define OCP_STATUS_OK 0x10000 | ||
43 | #define OCP_STATUS_REQ_FAILED 0x20000 | ||
44 | #define OCP_STATUS_RESP_ERROR 0x30000 | ||
45 | |||
34 | void wl1271_disable_interrupts(struct wl1271 *wl) | 46 | void wl1271_disable_interrupts(struct wl1271 *wl) |
35 | { | 47 | { |
36 | wl->if_ops->disable_irq(wl); | 48 | wl->if_ops->disable_irq(wl); |