mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
usb: typec: mux: Remove requirement for the "orientation-switch" device property
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>
This commit is contained in:
parent
7bf991eab8
commit
acad3e9c72
1 changed files with 0 additions and 3 deletions
|
@ -30,9 +30,6 @@ static void *typec_switch_match(struct fwnode_handle *fwnode, const char *id,
|
||||||
{
|
{
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
|
|
||||||
if (id && !fwnode_property_present(fwnode, id))
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
dev = class_find_device(&typec_mux_class, NULL, fwnode,
|
dev = class_find_device(&typec_mux_class, NULL, fwnode,
|
||||||
switch_fwnode_match);
|
switch_fwnode_match);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue