USB: serial: cp210x: make line-speed quantisation data driven
Greg Kroah-Hartman
maintainerPATCH 1/5 USB: serial: cp210x: make line-speed quantisation data driven
Quoted 8 lines · Johan Hovold
Older cp210x devices only support a fixed set of line speeds to which a requested speed is mapped. Reimplement this mapping using a table instead of a long if-else construct.
Signed-off-by Johan Hovold <[email protected]>--- drivers/usb/serial/cp210x.c | 99 +++++++++++++++++++++---------------- 1 file changed, 56 insertions(+), 43 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