commit | 95fd4f47c857cf887ec0f6718ffb6a6ec3b62bd6 | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Wed Jul 18 14:24:57 2018 +0200 |
committer | Johan Hovold <johan@kernel.org> | Wed Jul 18 21:53:31 2018 +0200 |
tree | a49ce24e3b843100421907531aa40d67a42465c6 | |
parent | 3528651e89aa044347ca06db6e9a106aa9aff914 [diff] |
USB: serial: cp210x: make line-speed quantisation data driven 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. Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>