serial: sh-sci: Simplify baud rate calculation algorithms
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 6 Dec 2013 09:59:12 +0000 (10:59 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 24 Dec 2013 02:17:33 +0000 (11:17 +0900)
commit6557b1f69ea0961efde7ab33bfe0cb7e3bfed54e
tree6b80f503c2968778ed6e0d7e20a1a7e34db1de50
parent6db201da2522d7dd231982ff7b83916cf4db3e41
serial: sh-sci: Simplify baud rate calculation algorithms

Rewrite the baud rate register value calculations in easier to read
forms. The computed value isn't modified.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/tty/serial/sh-sci.c
include/linux/serial_sci.h