diff options
author | Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com> | 2010-02-18 06:25:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-02-19 15:52:47 -0500 |
commit | 7b048c52d7283ebf07c826a45c631a6ba225c057 (patch) | |
tree | 913db3eb56919bca79b60070720735b2e2a3289a /drivers/net/wireless/wl12xx/wl1271_cmd.c | |
parent | 521a5b2137cc15430e3b1ea4c148663d1dbe077f (diff) |
wl1271: Renamed IO functions
In preparation for integration of SDIO implementation renamed some IO
functions from wl1271_spi_* form to wl1271_*.
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_cmd.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_cmd.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.c b/drivers/net/wireless/wl12xx/wl1271_cmd.c index 54b5124fc0c0..36a64e06f290 100644 --- a/drivers/net/wireless/wl12xx/wl1271_cmd.c +++ b/drivers/net/wireless/wl12xx/wl1271_cmd.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include "wl1271.h" | 30 | #include "wl1271.h" |
31 | #include "wl1271_reg.h" | 31 | #include "wl1271_reg.h" |
32 | #include "wl1271_spi.h" | 32 | #include "wl1271_spi.h" |
33 | #include "wl1271_io.h" | ||
33 | #include "wl1271_acx.h" | 34 | #include "wl1271_acx.h" |
34 | #include "wl12xx_80211.h" | 35 | #include "wl12xx_80211.h" |
35 | #include "wl1271_cmd.h" | 36 | #include "wl1271_cmd.h" |
@@ -57,13 +58,13 @@ int wl1271_cmd_send(struct wl1271 *wl, u16 id, void *buf, size_t len, | |||
57 | 58 | ||
58 | WARN_ON(len % 4 != 0); | 59 | WARN_ON(len % 4 != 0); |
59 | 60 | ||
60 | wl1271_spi_write(wl, wl->cmd_box_addr, buf, len, false); | 61 | wl1271_write(wl, wl->cmd_box_addr, buf, len, false); |
61 | 62 | ||
62 | wl1271_spi_write32(wl, ACX_REG_INTERRUPT_TRIG, INTR_TRIG_CMD); | 63 | wl1271_write32(wl, ACX_REG_INTERRUPT_TRIG, INTR_TRIG_CMD); |
63 | 64 | ||
64 | timeout = jiffies + msecs_to_jiffies(WL1271_COMMAND_TIMEOUT); | 65 | timeout = jiffies + msecs_to_jiffies(WL1271_COMMAND_TIMEOUT); |
65 | 66 | ||
66 | intr = wl1271_spi_read32(wl, ACX_REG_INTERRUPT_NO_CLEAR); | 67 | intr = wl1271_read32(wl, ACX_REG_INTERRUPT_NO_CLEAR); |
67 | while (!(intr & WL1271_ACX_INTR_CMD_COMPLETE)) { | 68 | while (!(intr & WL1271_ACX_INTR_CMD_COMPLETE)) { |
68 | if (time_after(jiffies, timeout)) { | 69 | if (time_after(jiffies, timeout)) { |
69 | wl1271_error("command complete timeout"); | 70 | wl1271_error("command complete timeout"); |
@@ -73,13 +74,13 @@ int wl1271_cmd_send(struct wl1271 *wl, u16 id, void *buf, size_t len, | |||
73 | 74 | ||
74 | msleep(1); | 75 | msleep(1); |
75 | 76 | ||
76 | intr = wl1271_spi_read32(wl, ACX_REG_INTERRUPT_NO_CLEAR); | 77 | intr = wl1271_read32(wl, ACX_REG_INTERRUPT_NO_CLEAR); |
77 | } | 78 | } |
78 | 79 | ||
79 | /* read back the status code of the command */ | 80 | /* read back the status code of the command */ |
80 | if (res_len == 0) | 81 | if (res_len == 0) |
81 | res_len = sizeof(struct wl1271_cmd_header); | 82 | res_len = sizeof(struct wl1271_cmd_header); |
82 | wl1271_spi_read(wl, wl->cmd_box_addr, cmd, res_len, false); | 83 | wl1271_read(wl, wl->cmd_box_addr, cmd, res_len, false); |
83 | 84 | ||
84 | status = le16_to_cpu(cmd->status); | 85 | status = le16_to_cpu(cmd->status); |
85 | if (status != CMD_STATUS_SUCCESS) { | 86 | if (status != CMD_STATUS_SUCCESS) { |
@@ -87,8 +88,8 @@ int wl1271_cmd_send(struct wl1271 *wl, u16 id, void *buf, size_t len, | |||
87 | ret = -EIO; | 88 | ret = -EIO; |
88 | } | 89 | } |
89 | 90 | ||
90 | wl1271_spi_write32(wl, ACX_REG_INTERRUPT_ACK, | 91 | wl1271_write32(wl, ACX_REG_INTERRUPT_ACK, |
91 | WL1271_ACX_INTR_CMD_COMPLETE); | 92 | WL1271_ACX_INTR_CMD_COMPLETE); |
92 | 93 | ||
93 | out: | 94 | out: |
94 | return ret; | 95 | return ret; |