commit | 375cb533c00a237264cc1d810d22f70de30362c2 | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Thu Nov 07 14:28:54 2019 +0100 |
committer | Johan Hovold <johan@kernel.org> | Tue Nov 12 09:56:20 2019 +0100 |
tree | 2bcede75b647dd55679bbe8a535345d647474d15 | |
parent | 92fe35fb9c70a00d8fbbf5bd6172c921dd9c7815 [diff] |
USB: serial: mos7840: clean up device-type handling The current device-type detection is fragile and can't really be relied upon. Instead of sprinkling device-id conditionals throughout the driver, let's use the device-id table to encode the number of ports and whether the device has a driver-controlled activity LED (MCS7810). Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>