]> 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)
commit61f42f2cae8025c2d332abd4d2fb87e12f5c9900
tree6f13a8b12b0bf87ee3d74e96498eb2d77d0b8ba8
parentc5c2adcf010c978e1dc3b7f98cb6e71d741e0f2c
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