]> git.baikalelectronics.ru Git - kernel.git/commit
wl1251: convert 32-bit values to le32 before writing to the chip
authorLuciano Coelho <coelho@ti.com>
Wed, 21 Dec 2011 20:36:28 +0000 (22:36 +0200)
committerLuciano Coelho <coelho@ti.com>
Wed, 15 Feb 2012 06:38:27 +0000 (08:38 +0200)
commit7618ac1269f2439bd1bd20a7e1b7bf2a36ff4951
tree6f13a8b12b0bf87ee3d74e96498eb2d77d0b8ba8
parent3d1876d19195d76e0a92e2fffaae3a72bc926bf4
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>
drivers/net/wireless/wl1251/io.h
drivers/net/wireless/wl1251/wl1251.h