summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/ftdi_sio.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2022-09-11 16:02:05 +0200
committerJohan Hovold <johan@kernel.org>2022-09-15 08:05:45 +0200
commit366e89aafe200d654d6fca788cb837906c82159d (patch)
tree0cb75598d35dc3e0d7eafc49c4c8441265d52872 /drivers/usb/serial/ftdi_sio.c
parent7bd7ad3c310cd6766f170927381eea0aa6f46c69 (diff)
USB: serial: ftdi_sio: clean up chip type enum
Clean up the chip type enum by dropping the explicit values and moving the definition to the implementation to make it easier to add further types. Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
-rw-r--r--drivers/usb/serial/ftdi_sio.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
index 787e63fd7f99..54a79284ffd7 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -47,6 +47,17 @@
#define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Bill Ryder <bryder@sgi.com>, Kuba Ober <kuba@mareimbrium.org>, Andreas Mohr, Johan Hovold <jhovold@gmail.com>"
#define DRIVER_DESC "USB FTDI Serial Converters Driver"
+enum ftdi_chip_type {
+ SIO,
+ FT8U232AM,
+ FT232BM,
+ FT2232C,
+ FT232RL,
+ FT2232H,
+ FT4232H,
+ FT232H,
+ FTX,
+};
struct ftdi_private {
enum ftdi_chip_type chip_type;