diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2018-06-27 18:19:47 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-28 19:52:07 +0900 |
commit | aaf3f4e925dc2bdc4715142103660285632a245c (patch) | |
tree | 04c85a7cf31c9c7977edb2c988bc299222318dff /include/linux | |
parent | 82f5d7749fa4f3851f705c75b33babf68edb90b8 (diff) | |
download | linux-aaf3f4e925dc2bdc4715142103660285632a245c.tar.gz linux-aaf3f4e925dc2bdc4715142103660285632a245c.tar.bz2 linux-aaf3f4e925dc2bdc4715142103660285632a245c.zip |
usb: typec: function for checking cable plug orientation
This adds function typec_get_orientation() that can be used
for checking the current cable plug orientation.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/usb/typec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/typec.h b/include/linux/usb/typec.h index 15f8d9a50b31..6c33b53d1162 100644 --- a/include/linux/usb/typec.h +++ b/include/linux/usb/typec.h @@ -265,6 +265,7 @@ void typec_set_pwr_opmode(struct typec_port *port, enum typec_pwr_opmode mode); int typec_set_orientation(struct typec_port *port, enum typec_orientation orientation); +enum typec_orientation typec_get_orientation(struct typec_port *port); int typec_set_mode(struct typec_port *port, int mode); int typec_find_port_power_role(const char *name); |