]> err.no Git - linux-2.6/commit
atmel_spi: clean up baud rate divisor calculation
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Wed, 30 Apr 2008 07:52:17 +0000 (00:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:31 +0000 (08:29 -0700)
commit592e7bf80566bf5ac3ed073d4e198dd5b0824c04
tree8e778b8c93a16b11085099214f729b3795fd19a9
parentc6495aaabfaa8256c292c54b48ab081f4d86ad79
atmel_spi: clean up baud rate divisor calculation

Make the baud rate divisor calculation code a bit more readable and add a
few comments.

Also fix wrong debug information being displayed when !new_1 and
max_speed_hz == 0.

[david-b@pacbell.net: fix it]
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Cc: "Janesh Ramakrishnan" <jramakrishnan@neuropace.com>
Acked-by David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/atmel_spi.c