USB: serial: pl2303: clean up type detection
authorJohan Hovold <johan@kernel.org>
Thu, 11 Mar 2021 16:14:47 +0000 (17:14 +0100)
committerJohan Hovold <johan@kernel.org>
Wed, 17 Mar 2021 08:16:19 +0000 (09:16 +0100)
commite5f48c812679ff46c8fe5e0c4a9f2881cb56ea1a
tree58dd22850513f54ac462bb7e6e565b6b74ed924a
parent8747fb3b14dda3a3e8f934ceb8beab9bd34d927e
USB: serial: pl2303: clean up type detection

Clean up the type detection somewhat in preparation for adding support
for more types.

Note this also fixes the type debug printk for the new HXN type.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/pl2303.c