]> git.karo-electronics.de Git - linux-beck.git/commit
serial: sh-sci: Prepare for multiple sampling clock sources
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 26 Oct 2015 08:58:16 +0000 (09:58 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 17 Dec 2015 10:18:54 +0000 (11:18 +0100)
commitf4998e55b8987428aa86de02c934fb6e0988d9a3
tree3219cabb1e1b36da30eaaebcd95bfa93c9ed6afd
parent9ed44bb209d0ece90abb6b4279d8b18e17680476
serial: sh-sci: Prepare for multiple sampling clock sources

Refactor the clock and baud rate parameter code to ease adding support
for multiple sampling clock sources.
sci_scbrr_calc() now returns the bit rate error, so it can be compared
to the bit rate error using other sampling clock sources.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c