diff options
author | Johan Hovold | 2020-06-30 11:57:56 +0200 |
---|---|---|
committer | Johan Hovold | 2020-06-30 12:07:00 +0200 |
commit | 86f6da2951db571255ea0b1af7c6115ab870b757 (patch) | |
tree | 2267012f6b9c682ae3a8801105a6f97c6be6fe08 /drivers/usb/serial/garmin_gps.c | |
parent | 2c509d1cc86dfe8eb70042a055dc039cbe850cf7 (diff) |
USB: serial: ch341: add min and max line-speed macros
The line-speed algorithm clamps the requested value to the supported
range instead of bailing out on unsupported values.
Provide min and max macros and indicate how they are derived instead of
hardcoding the limits.
Note that the algorithm depends on the minimum rate (45.78 bps)
being rounded up (and the maximum rate being rounded down) to avoid
special casing.
Suggested-by: Michael Hanselmann <public@hansmi.ch>
Link: https://lore.kernel.org/r/20200630095756.GZ3334@localhost
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/garmin_gps.c')
0 files changed, 0 insertions, 0 deletions