USB: serial: ftdi_sio: clean up jtag quirks
authorJohan Hovold <johan@kernel.org>
Tue, 29 Sep 2020 10:41:16 +0000 (12:41 +0200)
committerJohan Hovold <johan@kernel.org>
Thu, 1 Oct 2020 07:37:16 +0000 (09:37 +0200)
commit75240ac439eafde7e5b94107ece32b11a334d985
tree92e4a392cbe1f33d5e493ff1e31bbfa3e99f2761
parent031f9664f8f9356cee662335bc56c93d16e75665
USB: serial: ftdi_sio: clean up jtag quirks

Drivers should not assume that interface descriptors have been parsed in
any particular order so match on interface number instead when rejecting
JTAG interfaces.

Also use the interface struct device for notifications so that the
interface number is included.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ftdi_sio.c