usb: typec: mux: Remove requirement for the "orientation-switch" device property
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 26 May 2021 15:35:48 +0000 (18:35 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 May 2021 07:23:57 +0000 (09:23 +0200)
The additional boolean device property "orientation-switch"
is not needed when the connection is described with device
graph, so removing the check and the requirement for it.

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-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux.c

index 6daf805..5fce4c4 100644 (file)
@@ -30,9 +30,6 @@ static void *typec_switch_match(struct fwnode_handle *fwnode, const char *id,
 {
        struct device *dev;
 
-       if (id && !fwnode_property_present(fwnode, id))
-               return NULL;
-
        dev = class_find_device(&typec_mux_class, NULL, fwnode,
                                switch_fwnode_match);