driver/tcpm/fusb307.c: Format with clang-format
BRANCH=none
TEST=none
@@ -44,25 +44,29 @@ int fusb307_tcpm_set_polarity(int port, enum tcpc_cc_polarity polarity)
tcpm_get_cc(port, &cc1, &cc2);
if (cc1) {
if (pd_get_power_role(port) == PD_ROLE_SINK) {
- int role = TCPC_REG_ROLE_CTRL_SET(0,
- tcpci_get_cached_rp(port), TYPEC_CC_RD, TYPEC_CC_OPEN);
+ int role = TCPC_REG_ROLE_CTRL_SET(
+ 0, tcpci_get_cached_rp(port), TYPEC_CC_RD,
+ TYPEC_CC_OPEN);
tcpc_write(port, TCPC_REG_ROLE_CTRL, role);
} else {
- int role = TCPC_REG_ROLE_CTRL_SET(0,
- tcpci_get_cached_rp(port), TYPEC_CC_RP, TYPEC_CC_OPEN);
+ int role = TCPC_REG_ROLE_CTRL_SET(
+ 0, tcpci_get_cached_rp(port), TYPEC_CC_RP,
+ TYPEC_CC_OPEN);
tcpc_write(port, TCPC_REG_ROLE_CTRL, role);
}
} else if (cc2) {
if (pd_get_power_role(port) == PD_ROLE_SINK) {
- int role = TCPC_REG_ROLE_CTRL_SET(0,
- tcpci_get_cached_rp(port), TYPEC_CC_OPEN, TYPEC_CC_RD);
+ int role = TCPC_REG_ROLE_CTRL_SET(
+ 0, tcpci_get_cached_rp(port), TYPEC_CC_OPEN,
+ TYPEC_CC_RD);
tcpc_write(port, TCPC_REG_ROLE_CTRL, role);
} else {
- int role = TCPC_REG_ROLE_CTRL_SET(0,
- tcpci_get_cached_rp(port), TYPEC_CC_OPEN, TYPEC_CC_RP);
+ int role = TCPC_REG_ROLE_CTRL_SET(
+ 0, tcpci_get_cached_rp(port), TYPEC_CC_OPEN,
+ TYPEC_CC_RP);
tcpc_write(port, TCPC_REG_ROLE_CTRL, role);
}
