Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290556
b: refs/heads/master
c: ac9e2d9
h: refs/heads/master
v: v3
  • Loading branch information
Luciano Coelho committed Feb 15, 2012
1 parent 3e281b6 commit 0f677f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 059625e757754459d8adb370e3d751abdd51723b
refs/heads/master: ac9e2d9afa90ecb7ee1b419cce6969f31a138f77
9 changes: 4 additions & 5 deletions trunk/drivers/net/wireless/wl1251/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,15 @@

static inline u32 wl1251_read32(struct wl1251 *wl, int addr)
{
u32 response;

wl->if_ops->read(wl, addr, &response, sizeof(u32));
wl->if_ops->read(wl, addr, &wl->buffer_32, sizeof(wl->buffer_32));

return response;
return le32_to_cpu(wl->buffer_32);
}

static inline void wl1251_write32(struct wl1251 *wl, int addr, u32 val)
{
wl->if_ops->write(wl, addr, &val, sizeof(u32));
wl->buffer_32 = cpu_to_le32(val);
wl->if_ops->write(wl, addr, &wl->buffer_32, sizeof(wl->buffer_32));
}

static inline u32 wl1251_read_elp(struct wl1251 *wl, int addr)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/wl1251/wl1251.h
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ struct wl1251 {
struct wl1251_stats stats;
struct wl1251_debugfs debugfs;

u32 buffer_32;
__le32 buffer_32;
u32 buffer_cmd;
u8 buffer_busyword[WL1251_BUSY_WORD_LEN];
struct wl1251_rx_descriptor *rx_descriptor;
Expand Down

0 comments on commit 0f677f6

Please sign in to comment.