Skip to contentSkip to conversation

usb: typec: intel_pmc_mux: Fix the property names

PATCH New Heikki Krogerus 1 participant 1 message Apr 30, 2020

Subsystems (3)
lore
Share & tools
lore

Heikki Krogerus

author maintainer
#0 lore raw

PATCH 1/1 usb: typec: intel_pmc_mux: Fix the property names

The device property names for the port index number are "usb2-port-number" and "usb3-port-number", not "usb2-port" and "usb3-port".

Fixes 6701adfa9693 ("usb: typec: driver for Intel PMC mux control")
---
 drivers/usb/typec/mux/intel_pmc_mux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/typec/mux/intel_pmc_mux.c +2 -2
index f5c5e0aef66f..bb23886c1768 100644
@@ -298,11 +298,11 @@ static int pmc_usb_register_port(struct pmc_usb *pmc, int index,
 	struct typec_mux_desc mux_desc = { };
 	int ret;
 
-	ret = fwnode_property_read_u8(fwnode, "usb2-port", &port->usb2_port);
+	ret = fwnode_property_read_u8(fwnode, "usb2-port-number", &port->usb2_port);
 	if (ret)
 		return ret;
 
-	ret = fwnode_property_read_u8(fwnode, "usb3-port", &port->usb3_port);
+	ret = fwnode_property_read_u8(fwnode, "usb3-port-number", &port->usb3_port);
 	if (ret)
 		return ret;
 
Signature · 1 line
2.26.2