USB: pl2303: add device-type abstraction
authorJohan Hovold <jhovold@gmail.com>
Sun, 29 Dec 2013 18:23:09 +0000 (19:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Jan 2014 20:31:47 +0000 (12:31 -0800)
commit359defdaa46c6ecf6a29600f3d57c663c9c35fd2
tree1d5183e3dd43b4c69c08c95ec4f6fa13a0c9b559
parent23c6acb9684ac87c2e752f61900c7a1a2dd543ac
USB: pl2303: add device-type abstraction

Encode all device-type specifics in a struct rather than testing for
device type and spreading such information throughout the driver.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/pl2303.c