summaryrefslogtreecommitdiff
path: root/include/linux/usb
diff options
context:
space:
mode:
authorAmelie Delaunay <amelie.delaunay@st.com>2020-09-24 11:00:45 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-02 15:30:31 +0200
commit12f3467b0d28369d3add7a0deb65fdac9b503c90 (patch)
tree063093ea0f10a69f516e80ef5c50abb340a6de48 /include/linux/usb
parenta6806e32e7a41c20c6b288009cb6f30929668327 (diff)
downloadlwn-12f3467b0d28369d3add7a0deb65fdac9b503c90.tar.gz
lwn-12f3467b0d28369d3add7a0deb65fdac9b503c90.zip
usb: typec: add typec_find_pwr_opmode
This patch adds a function that converts power operation mode string into power operation mode value. It is useful to configure power operation mode through device tree property, as power capabilities may be linked to hardware design. Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com> Link: https://lore.kernel.org/r/20200924090049.9041-3-amelie.delaunay@st.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/typec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/typec.h b/include/linux/usb/typec.h
index 9cb1bec94b71..6be558045942 100644
--- a/include/linux/usb/typec.h
+++ b/include/linux/usb/typec.h
@@ -268,6 +268,7 @@ int typec_set_mode(struct typec_port *port, int mode);
void *typec_get_drvdata(struct typec_port *port);
+int typec_find_pwr_opmode(const char *name);
int typec_find_orientation(const char *name);
int typec_find_port_power_role(const char *name);
int typec_find_power_role(const char *name);