]> git.karo-electronics.de Git - mv-sheeva.git/commit
wl12xx: Clean up the block size alignment code
authorIdo Yariv <ido@wizery.com>
Thu, 31 Mar 2011 08:06:58 +0000 (10:06 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 19 Apr 2011 13:49:18 +0000 (16:49 +0300)
commit0da13da767cd568c1fe2a7b5b936e86e521b5ae7
tree7c629a516bb90567e60041b4273d4dd92395d0e8
parentd29633b40e6afc6b4276a4e381bc532cc84be104
wl12xx: Clean up the block size alignment code

Simplify and clean up the block size alignment code:
1. Set the block size according to the padding field type, as it cannot
   exceed the maximum value this field can hold.
2. Move the alignment code into a function instead of duplicating it in
   multiple places.
3. In the current implementation, the block_size member can be
   misleading because a zero value actually means that there's no need to
   align. Declare a block size alignment quirk instead.

Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/init.c
drivers/net/wireless/wl12xx/io.c
drivers/net/wireless/wl12xx/main.c
drivers/net/wireless/wl12xx/sdio.c
drivers/net/wireless/wl12xx/tx.c
drivers/net/wireless/wl12xx/tx.h
drivers/net/wireless/wl12xx/wl12xx.h