Skip to content
Commit 36131cdf authored by Alexey Starikovskiy's avatar Alexey Starikovskiy Committed by Greg Kroah-Hartman
Browse files

tty/serial: atmel: fix fractional baud rate computation



The problem with previous code was it rounded values in wrong
place and produced wrong baud rate in some cases.

Signed-off-by: default avatarAlexey Starikovskiy <aystarik@gmail.com>
[nicolas.ferre@atmel.com: port to newer kernel and add commit log]
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e98d4137
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment