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: 6701adfa96 ("usb: typec: driver for Intel PMC mux control")
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200430135657.45169-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Heikki Krogerus 2020-04-30 16:56:57 +03:00 committed by Greg Kroah-Hartman
parent ac854131d9
commit e283f5e89f
1 changed files with 2 additions and 2 deletions

View File

@ -298,11 +298,11 @@ static int pmc_usb_register_port(struct pmc_usb *pmc, int index,
struct typec_mux_desc mux_desc = { }; struct typec_mux_desc mux_desc = { };
int ret; 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) if (ret)
return 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) if (ret)
return ret; return ret;