aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_event.c
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2009-10-12 08:08:54 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 16:48:05 -0400
commit746214178774bc7f9adbeaef7d43a634570eb870 (patch)
tree7a1b6e9875351b89b9abbe9a836ec8c5c805a8ee /drivers/net/wireless/wl12xx/wl1271_event.c
parent207347e498cbe25fa2a8369edd49df43e56000be (diff)
wl1271: Remove outdated SPI functions
With the change to the new firmware, there was a change to firmware memory partitioning. Along with that change, the translation of all partitions was unified, and separate functions for reg and mem access became unnecessary. Cleanup the unnecessary functions. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_event.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_event.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_event.c b/drivers/net/wireless/wl12xx/wl1271_event.c
index f32927650af4..4189e97ca805 100644
--- a/drivers/net/wireless/wl12xx/wl1271_event.c
+++ b/drivers/net/wireless/wl12xx/wl1271_event.c
@@ -98,7 +98,7 @@ int wl1271_event_unmask(struct wl1271 *wl)
98 98
99void wl1271_event_mbox_config(struct wl1271 *wl) 99void wl1271_event_mbox_config(struct wl1271 *wl)
100{ 100{
101 wl->mbox_ptr[0] = wl1271_reg_read32(wl, REG_EVENT_MAILBOX_PTR); 101 wl->mbox_ptr[0] = wl1271_spi_read32(wl, REG_EVENT_MAILBOX_PTR);
102 wl->mbox_ptr[1] = wl->mbox_ptr[0] + sizeof(struct event_mailbox); 102 wl->mbox_ptr[1] = wl->mbox_ptr[0] + sizeof(struct event_mailbox);
103 103
104 wl1271_debug(DEBUG_EVENT, "MBOX ptrs: 0x%x 0x%x", 104 wl1271_debug(DEBUG_EVENT, "MBOX ptrs: 0x%x 0x%x",
@@ -116,8 +116,8 @@ int wl1271_event_handle(struct wl1271 *wl, u8 mbox_num)
116 return -EINVAL; 116 return -EINVAL;
117 117
118 /* first we read the mbox descriptor */ 118 /* first we read the mbox descriptor */
119 wl1271_spi_mem_read(wl, wl->mbox_ptr[mbox_num], &mbox, 119 wl1271_spi_read(wl, wl->mbox_ptr[mbox_num], &mbox,
120 sizeof(struct event_mailbox)); 120 sizeof(struct event_mailbox), false);
121 121
122 /* process the descriptor */ 122 /* process the descriptor */
123 ret = wl1271_event_process(wl, &mbox); 123 ret = wl1271_event_process(wl, &mbox);
@@ -125,7 +125,7 @@ int wl1271_event_handle(struct wl1271 *wl, u8 mbox_num)
125 return ret; 125 return ret;
126 126
127 /* then we let the firmware know it can go on...*/ 127 /* then we let the firmware know it can go on...*/
128 wl1271_reg_write32(wl, ACX_REG_INTERRUPT_TRIG, INTR_TRIG_EVENT_ACK); 128 wl1271_spi_write32(wl, ACX_REG_INTERRUPT_TRIG, INTR_TRIG_EVENT_ACK);
129 129
130 return 0; 130 return 0;
131} 131}