cpm2: Round the baud-rate clock divider to the nearest integer.
authorLaurent Pinchart <laurentp@cse-semaphore.com>
Thu, 20 Nov 2008 12:32:23 +0000 (13:32 +0100)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 29 Jan 2009 00:16:57 +0000 (18:16 -0600)
commit7b8909940a524d67b4352c29256ada476f50fbba
tree4de0284227e6bea6affcfd2f828ac311953d33eb
parent96051465fdc29e00dd14b484a45daac089c657f8
cpm2: Round the baud-rate clock divider to the nearest integer.

Instead of rounding the divider down, improve the baud-rate generators
accuracy by rounding to the nearest integer.

Signed-off-by: Laurent Pinchart <laurentp@cse-semaphore.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/cpm2.c