summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/wl1251/wl1251.h
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2011-12-22 00:36:28 +0400
committerLuciano Coelho <coelho@ti.com>2012-02-15 10:38:27 +0400
commitac9e2d9afa90ecb7ee1b419cce6969f31a138f77 (patch)
tree6f13a8b12b0bf87ee3d74e96498eb2d77d0b8ba8 /drivers/net/wireless/wl1251/wl1251.h
parent059625e757754459d8adb370e3d751abdd51723b (diff)
downloadlinux-ac9e2d9afa90ecb7ee1b419cce6969f31a138f77.tar.xz
wl1251: convert 32-bit values to le32 before writing to the chip
The 32-bit values were not converted before writing them to the chip. Change the wl1251_read32() and wl1251_write32() so that they always read and write le32 values and convert to and from the CPU endianess. Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl1251/wl1251.h')
-rw-r--r--drivers/net/wireless/wl1251/wl1251.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl1251/wl1251.h b/drivers/net/wireless/wl1251/wl1251.h
index a77f1bbbed0a..9d8f5816c6f9 100644
--- a/drivers/net/wireless/wl1251/wl1251.h
+++ b/drivers/net/wireless/wl1251/wl1251.h
@@ -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;