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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
82f5d7749f
commit
aaf3f4e925
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user