usb: typec: mux: Use device type instead of device name for matching
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 26 May 2021 15:35:47 +0000 (18:35 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 May 2021 07:23:57 +0000 (09:23 +0200)
commit7bf991eab8b21afb7bd130b7065384a6ce2e8789
tree05bad608271c9114d263cc903f7637458543d0f6
parentbaabd69492bbd3250467515a5a6f2bf15ade9b62
usb: typec: mux: Use device type instead of device name for matching

Both the USB Type-C switch and mux have already a device
type defined for them. We can use those types instead of the
device name to differentiate the two.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20210526153548.61276-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux.c
drivers/usb/typec/mux.h