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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
a6806e32e7
commit
12f3467b0d
@@ -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);
|
||||
|
Reference in New Issue
Block a user