usb: typec: add API to get typec basic port power and data config
This patch adds 3 APIs to get the typec port power and data type, and preferred power role by its name string. Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Li Jun <jun.li@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
5e85a04c8c
commit
9c90e02434
@@ -267,4 +267,7 @@ int typec_set_orientation(struct typec_port *port,
|
||||
enum typec_orientation orientation);
|
||||
int typec_set_mode(struct typec_port *port, int mode);
|
||||
|
||||
int typec_find_port_power_role(const char *name);
|
||||
int typec_find_power_role(const char *name);
|
||||
int typec_find_port_data_role(const char *name);
|
||||
#endif /* __LINUX_USB_TYPEC_H */
|
||||
|
Reference in New Issue
Block a user