b43: LP-PHY: Fix and simplify Qdiv roundup
authorGábor Stefanik <netrolller.3d@gmail.com>
Wed, 26 Aug 2009 18:51:24 +0000 (20:51 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Aug 2009 18:40:52 +0000 (14:40 -0400)
The Qdiv roundup routine is essentially a fixed-point
division algorithm, using only integer math.
However, the version in the specs had a major error
that has been recently fixed (a missing quotient++).

Replace Qdiv roundup with a rewritten, simplified version.

Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

No differences found