]> Pileus Git - ~andy/linux/commit
b43: use the bitrev helpers rather than rolling a private one
authorHarvey Harrison <harvey.harrison@gmail.com>
Wed, 14 May 2008 01:13:35 +0000 (18:13 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 May 2008 20:29:50 +0000 (16:29 -0400)
commit6dcdc19e4ba4e6a9ccd733fdb745ad062cf3ea0a
treecb0a2b5dd6ada7582664b3d27c6cdbb4da29a152
parentd6894b5be1d674a31a94ed8f057c9f7d98c53999
b43: use the bitrev helpers rather than rolling a private one

The 4-bit reversal flip_4bit is replaced with the bitrev helper
bitrev8 and a 4-bit shift.  The B43_WARN is moved to the location
where a register is read from for checking there.  The other caller
explicitly passes an array index which is guaranteed to be within range
and so a B43_WARN is not added there.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Reviewed-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/phy.c