summaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2020-05-07 18:08:57 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-13 14:20:49 +0200
commit8c49c9ee4a91c158d28c583862718b348881cb16 (patch)
tree6b8080f1a112cff6d558788867b0b4b4800a6176 /include/linux/usb
parent3e63cff384e625f09758ce8f4d01ae3033402b63 (diff)
downloadlinux-8c49c9ee4a91c158d28c583862718b348881cb16.tar.gz
linux-8c49c9ee4a91c158d28c583862718b348881cb16.tar.bz2
linux-8c49c9ee4a91c158d28c583862718b348881cb16.zip
usb: typec: Add typec_find_orientation()
Function that converts orientation string into orientation value. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20200507150900.12102-2-heikki.krogerus@linux.intel.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 b00a2642a9cd..5daa1c49761c 100644
--- a/include/linux/usb/typec.h
+++ b/include/linux/usb/typec.h
@@ -254,6 +254,7 @@ int typec_set_mode(struct typec_port *port, int mode);
void *typec_get_drvdata(struct typec_port *port);
+int typec_find_orientation(const char *name);
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);