OSDN Git Service

USB: pl2303: clean up type handling
authorJohan Hovold <jhovold@gmail.com>
Sun, 29 Dec 2013 18:23:07 +0000 (19:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Jan 2014 20:31:47 +0000 (12:31 -0800)
commit7f966ac7a939633ff6fa8cec58982676c243b4f8
tree66886015e52ce580028b38032253737cc1fbc51e
parentf84ee3b2f5e5e39041c39268a9eab5046a050d44
USB: pl2303: clean up type handling

Merge types 0 and 1, whose differences are unknown and have always been
treated the same.
Add TYPE_-prefix to both types.
Test for TYPE_01 (rather than !TYPE_HX) for legacy device quirks.

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