diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1251_io.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251_io.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_io.h b/drivers/net/wireless/wl12xx/wl1251_io.h index e2bb9546fa68..1fa2ab18a9e1 100644 --- a/drivers/net/wireless/wl12xx/wl1251_io.h +++ b/drivers/net/wireless/wl12xx/wl1251_io.h | |||
@@ -22,24 +22,19 @@ | |||
22 | #define __WL1251_IO_H__ | 22 | #define __WL1251_IO_H__ |
23 | 23 | ||
24 | #include "wl1251.h" | 24 | #include "wl1251.h" |
25 | #include "wl1251_spi.h" | ||
26 | |||
27 | /* Raw target IO, address is not translated */ | ||
28 | void wl1251_spi_read(struct wl1251 *wl, int addr, void *buf, size_t len); | ||
29 | void wl1251_spi_write(struct wl1251 *wl, int addr, void *buf, size_t len); | ||
30 | 25 | ||
31 | static inline u32 wl1251_read32(struct wl1251 *wl, int addr) | 26 | static inline u32 wl1251_read32(struct wl1251 *wl, int addr) |
32 | { | 27 | { |
33 | u32 response; | 28 | u32 response; |
34 | 29 | ||
35 | wl1251_spi_read(wl, addr, &response, sizeof(u32)); | 30 | wl->if_ops->read(wl, addr, &response, sizeof(u32)); |
36 | 31 | ||
37 | return response; | 32 | return response; |
38 | } | 33 | } |
39 | 34 | ||
40 | static inline void wl1251_write32(struct wl1251 *wl, int addr, u32 val) | 35 | static inline void wl1251_write32(struct wl1251 *wl, int addr, u32 val) |
41 | { | 36 | { |
42 | wl1251_spi_write(wl, addr, &val, sizeof(u32)); | 37 | wl->if_ops->write(wl, addr, &val, sizeof(u32)); |
43 | } | 38 | } |
44 | 39 | ||
45 | /* Memory target IO, address is translated to partition 0 */ | 40 | /* Memory target IO, address is translated to partition 0 */ |