commit | ed921771ffb65ce1f65d746fe8f88c0e0a829d76 | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Mon Nov 16 17:18:25 2020 +0100 |
committer | Johan Hovold <johan@kernel.org> | Fri Dec 04 14:57:27 2020 +0100 |
tree | 5dd99aeaa7fe6ca6a4e9f8aa98c1344de5bc0cf9 | |
parent | b339628ec08c51c3445f4b094e0011406fc36344 [diff] |
USB: serial: cp210x: refactor flow-control handling Add a helper function to be used to configure flow control. The flow-control code was the last caller that relied on the memset-on-failure behaviour of cp210x_read_reg_block(), which we can now drop in favour of bailing out on errors when retrieving the flow-control settings. This should also simplify adding support for software flow control. Signed-off-by: Johan Hovold <johan@kernel.org>