diff options
author | Amelie Delaunay <amelie.delaunay@st.com> | 2020-11-27 16:17:35 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-27 16:44:26 +0300 |
commit | 484cfbe5fb61469a5f5a276258a8b3973164b56f (patch) | |
tree | f8543f00bee9edd86986ada5f24d7ae29d03839d /drivers/usb/typec/stusb160x.c | |
parent | f3bc432aa8a7a2bfe9ebb432502be5c5d979d7fe (diff) | |
download | linux-484cfbe5fb61469a5f5a276258a8b3973164b56f.tar.xz |
usb: typec: stusb160x: fix power-opmode property with typec-power-opmode
Device tree property is named typec-power-opmode, not power-opmode.
Fixes: da0cb6310094 ("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>
Diffstat (limited to 'drivers/usb/typec/stusb160x.c')
-rw-r--r-- | drivers/usb/typec/stusb160x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/typec/stusb160x.c b/drivers/usb/typec/stusb160x.c index 2a618f02f4f1..d21750bbbb44 100644 --- a/drivers/usb/typec/stusb160x.c +++ b/drivers/usb/typec/stusb160x.c @@ -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 */ |