USB: serial: ftdi_sio: clean up attribute handling
authorJohan Hovold <johan@kernel.org>
Sun, 11 Sep 2022 14:02:12 +0000 (16:02 +0200)
committerJohan Hovold <johan@kernel.org>
Thu, 15 Sep 2022 06:05:59 +0000 (08:05 +0200)
commit4d045b98fb7460026ac7aefe5418fff3b9d04f14
treeaf6a236bb982ea0f4cc73855f4a3f2fd571ce92d
parent6fbd91425746f1df97145da31fb2177f7915479b
USB: serial: ftdi_sio: clean up attribute handling

The driver exposes two attributes for all chip types but FT232A, which
doesn't have a configurable latency timer, and SIO, which (probably)
doesn't support the event-char mechanism either.

Explicitly test for the exceptions rather than list each and every
supported device type in the attribute helpers.

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