Skip to contentSkip to conversation

USB: serial: cp210x: generalise CP2102N line-speed handling

PATCH New Greg Kroah-Hartman 1 participant 1 message Jul 18, 2018 USB

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

PATCH 4/5 USB: serial: cp210x: generalise CP2102N line-speed handling

Quoted 9 lines · Johan Hovold

The CP2102N equations for determining the actual baud rate can be used also for other device types, so let's factor it out.

Note that this removes the now unused cp210x_is_cp2102n() helper.

---
 drivers/usb/serial/cp210x.c | 50 ++++++++++++++++++++-----------------
 1 file changed, 27 insertions(+), 23 deletions(-)

---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html