USB: serial: cp210x: generalise CP2102N line-speed handling
Greg Kroah-Hartman
maintainerPATCH 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.Signed-off-by Johan Hovold <[email protected]>--- drivers/usb/serial/cp210x.c | 50 ++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 23 deletions(-)
Reviewed-by Greg Kroah-Hartman <[email protected]>
---
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