Skip to content

Commit

Permalink
usb: typec: stusb160x: fix power-opmode property with typec-power-opmode
Browse files Browse the repository at this point in the history
Device tree property is named typec-power-opmode, not power-opmode.

Fixes: da0cb63 ("usb: typec: add support for STUSB160x Type-C controller family")
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20201127131735.28280-1-amelie.delaunay@st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Amelie Delaunay authored and Greg Kroah-Hartman committed Nov 27, 2020
1 parent f3bc432 commit 484cfbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/typec/stusb160x.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ static int stusb160x_get_fw_caps(struct stusb160x *chip,
* Supported power operation mode can be configured through device tree
* else it is read from chip registers in stusb160x_get_caps.
*/
ret = fwnode_property_read_string(fwnode, "power-opmode", &cap_str);
ret = fwnode_property_read_string(fwnode, "typec-power-opmode", &cap_str);
if (!ret) {
ret = typec_find_pwr_opmode(cap_str);
/* Power delivery not yet supported */
Expand Down

0 comments on commit 484cfbe

Please sign in to comment.