Kunihiko Hayashi c6bceb4e36 serial: zynq: Use DIV_ROUND_CLOSEST() to calcurate divider value
Since the calulation of "bgen" is rounded down, using a higher
baudrate will result in a larger difference from the actual
baudrate. Should use DIV_ROUND_CLOSEST() like the Linux driver.

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/1657676339-6055-1-git-send-email-hayashi.kunihiko@socionext.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
2022-07-26 08:23:55 +02:00
..
2022-07-07 09:29:08 -04:00
2022-07-07 09:29:08 -04:00
2021-12-31 06:45:01 +01:00
2022-06-06 18:01:21 -04:00
2019-05-10 22:43:18 +02:00
2022-04-01 15:03:13 -04:00
2022-07-07 09:29:08 -04:00