diff options
author | Li Jun | 2018-06-27 07:45:23 +0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2018-06-28 19:49:47 +0900 |
commit | 9c90e02434b66f9bcfc5c9a91a808eee5b7aa21b (patch) | |
tree | 481c88c6937a0d133264e78ff9a3106d3bfe6ae1 /include/linux/usb | |
parent | 5e85a04c8c0d271d7561a770b85741f186398868 (diff) |
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>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/typec.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/usb/typec.h b/include/linux/usb/typec.h index 672b39bb0adc..15f8d9a50b31 100644 --- a/include/linux/usb/typec.h +++ b/include/linux/usb/typec.h @@ -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 */ |