imx: serial: use tty_encode_baud_rate to set true rate
authorOskar Schirmer <os@emlix.com>
Thu, 11 Jun 2009 13:55:22 +0000 (14:55 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Jun 2009 15:51:09 +0000 (08:51 -0700)
commitd7f8d437bda0ec409e26cffb846bc28a40603ee3
tree917e906bc45d2f08038f0dcba326b1dbb6c57320
parentb6e4913834cd032082e5c76dfade61050212dc98
imx: serial: use tty_encode_baud_rate to set true rate

real baud rate may be different from the one requested.
for upper layers, set the nearest value to the real rate
in favour of the rate previously requested.

Signed-off-by: Oskar Schirmer <os@emlix.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/imx.c