Skip to content
Commit ed921771 authored by Johan Hovold's avatar Johan Hovold
Browse files

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: default avatarJohan Hovold <johan@kernel.org>
parent b339628e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment