cw1200: Fix up a large pile of sparse warnings
authorSolomon Peachy <pizza@shaftnet.org>
Fri, 21 Jun 2013 03:03:12 +0000 (23:03 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 Jun 2013 18:44:24 +0000 (14:44 -0400)
commit7258416c517c79b2ebb30b61d8c6807a04dc6b25
tree6c547d02cdbc49bbc2ce8d3824d83cd14c71a15b
parent5d9e3bc21c57d600b706a31454d5cf2f68c24f53
cw1200: Fix up a large pile of sparse warnings

Most of these relate to endianness problems, and are purely cosmetic.

But a couple of them were legit -- listen interval parsing and some of
the rate selection code would malfunction on BE systems.

There's still one cosmetic warning remaining, in the (admittedly) ugly
code in cw1200_spi.c.  It's there because the hardware needs 16-bit SPI
transfers, but many SPI controllers only operate 8 bits at a time.

If there's a cleaner way of handling this, I'm all ears.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/cw1200/cw1200.h
drivers/net/wireless/cw1200/cw1200_spi.c
drivers/net/wireless/cw1200/hwio.c
drivers/net/wireless/cw1200/hwio.h
drivers/net/wireless/cw1200/main.c
drivers/net/wireless/cw1200/queue.c
drivers/net/wireless/cw1200/sta.c
drivers/net/wireless/cw1200/txrx.c
drivers/net/wireless/cw1200/wsm.c
drivers/net/wireless/cw1200/wsm.h