]> git.baikalelectronics.ru Git - kernel.git/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)
commit5edafe631d773b3ac18c6b6936b83b191ddda577
treecb0a2b5dd6ada7582664b3d27c6cdbb4da29a152
parent2a838c03c805f363a44e9ab8c3df8d806868fdd7
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