diff options
author | Kunihiko Hayashi <hayashi.kunihiko@socionext.com> | 2022-07-13 10:38:59 +0900 |
---|---|---|
committer | Michal Simek <michal.simek@amd.com> | 2022-07-26 08:23:55 +0200 |
commit | c6bceb4e360d704fb9746541c18a1a08f49353fc (patch) | |
tree | 0ae75743c33c6898f5b727a5f028289e8396139d /drivers/fpga/ivm_core.c | |
parent | 65fc1697dbfbf61680e6a9cdad0a2d7dd2f9bed9 (diff) |
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>
Diffstat (limited to 'drivers/fpga/ivm_core.c')
0 files changed, 0 insertions, 0 deletions