diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/usb/typec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/usb/typec.h b/include/linux/usb/typec.h index ec78204964ab..e54728caf44a 100644 --- a/include/linux/usb/typec.h +++ b/include/linux/usb/typec.h @@ -24,6 +24,7 @@ enum typec_port_type { TYPEC_PORT_DFP, TYPEC_PORT_UFP, TYPEC_PORT_DRP, + TYPEC_PORT_TYPE_UNKNOWN, }; enum typec_plug_type { @@ -42,6 +43,7 @@ enum typec_data_role { enum typec_role { TYPEC_SINK, TYPEC_SOURCE, + TYPEC_ROLE_UNKNOWN, }; enum typec_pwr_opmode { @@ -239,5 +241,7 @@ void typec_set_data_role(struct typec_port *port, enum typec_data_role role); void typec_set_pwr_role(struct typec_port *port, enum typec_role role); void typec_set_vconn_role(struct typec_port *port, enum typec_role role); void typec_set_pwr_opmode(struct typec_port *port, enum typec_pwr_opmode mode); +enum typec_port_type typec_get_port_type(struct device *dev); +enum typec_role typec_get_power_role(struct device *dev); #endif /* __LINUX_USB_TYPEC_H */ |