diff options
author | Konstantin Shkolnyy <konstantin.shkolnyy@gmail.com> | 2015-10-28 16:02:34 -0500 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2015-11-16 12:22:04 +0100 |
commit | e2ae67a3b55188b0342522d8139acf013feb2a69 (patch) | |
tree | 71d287900228ec13402bf1bac1cbc12e92cabdf4 /drivers/usb/serial/ipw.c | |
parent | ebfb319bb601e501f77809a83b0b69b529c22a8d (diff) | |
download | blackbird-op-linux-e2ae67a3b55188b0342522d8139acf013feb2a69.tar.gz blackbird-op-linux-e2ae67a3b55188b0342522d8139acf013feb2a69.zip |
USB: cp210x: relocate private data from USB interface to port
This change is preparation for implementing a cp2108 bug workaround.
The workaround requires storing some private data. Right now the data is
attached to the USB interface and allocated in the attach() callback.
The bug detection requires USB I/O which is done easier from port_probe()
callback rather than attach(). Since the USB access functions take port
as a parameter, and since the private data is used exclusively by these
functions, it can be allocated in port_probe(). Also, all cp210x devices
have exactly 1 port per USB iterface, so moving private data from the USB
interface to port is trivial.
Signed-off-by: Konstantin Shkolnyy <konstantin.shkolnyy@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/ipw.c')
0 files changed, 0 insertions, 0 deletions