]> git.karo-electronics.de Git - linux-beck.git/commit
serial: max310x: Setup baud rate generator more precisely
authorAlexander Shiyan <shc_work@mail.ru>
Fri, 7 Feb 2014 14:16:04 +0000 (18:16 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 17:33:04 +0000 (09:33 -0800)
commite97e15561cd885926f78200a1e75e713172da60e
tree03146120f801947ec35364278b657fb52026c280
parentd0fd413cffb7cd8efac6d4d192ba62fc2fa60d2d
serial: max310x: Setup baud rate generator more precisely

This patch provide more precisely setup of baud rate generator.
If the result of division has a remainder, we use the multiplier
for the base frequency. Additionally, we report result baud rate
back to serial core.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max310x.c