mirror of
https://github.com/revyos/thead-kernel.git
synced 2026-09-18 13:22:15 +02:00
sync: huiwei: 6d7e66668a8e94eeaf91ab8b41639a1234e89924
merge into bb16bfd32c08053e39e6c7b75d09f19a9e57a998
This commit is contained in:
@@ -562,6 +562,11 @@ static enum tcpm_state tcpm_default_state(struct tcpm_port *port)
|
||||
return SRC_UNATTACHED;
|
||||
}
|
||||
|
||||
int get_tcpm_port_polarity(struct tcpm_port *port)
|
||||
{
|
||||
return port->polarity;
|
||||
}
|
||||
|
||||
static bool tcpm_port_is_disconnected(struct tcpm_port *port)
|
||||
{
|
||||
return (!port->attached && port->cc1 == TYPEC_CC_OPEN &&
|
||||
|
||||
Reference in New Issue
Block a user