common/usbc/usb_tc_ctvpd_sm.c: Format with clang-format
BRANCH=none
TEST=none
@@ -105,7 +105,6 @@ enum usb_tc_state {
/* Forward declare the full list of states. This is indexed by usb_tc_state */
static const struct usb_state tc_states[];
-
/* List of human readable state names for console debugging */
__maybe_unused const char *const tc_state_names[] = {
#ifdef CONFIG_COMMON_RUNTIME
@@ -436,11 +435,11 @@ static void tc_attach_wait_snk_run(const int port)
if (tc[port].host_cc_state != host_new_cc_state) {
tc[port].host_cc_state = host_new_cc_state;
if (host_new_cc_state == PD_CC_DFP_ATTACHED)
- tc[port].host_cc_debounce = get_time().val +
- PD_T_CC_DEBOUNCE;
+ tc[port].host_cc_debounce =
+ get_time().val + PD_T_CC_DEBOUNCE;
else
- tc[port].host_cc_debounce = get_time().val +
- PD_T_PD_DEBOUNCE;
+ tc[port].host_cc_debounce =
+ get_time().val + PD_T_PD_DEBOUNCE;
return;
}
@@ -1001,8 +1000,7 @@ static void tc_ct_try_snk_run(const int port)
* for tDRPTryWait.
*/
if (tc[port].cc_state == PD_CC_NONE) {
- set_state_tc(port,
- TC_CT_ATTACHED_UNSUPPORTED);
+ set_state_tc(port, TC_CT_ATTACHED_UNSUPPORTED);
return;
}
}
@@ -1181,8 +1179,7 @@ static void tc_ct_unattached_unsupported_run(const int port)
* on both the CC1 and CC2 pins.
*/
if (cc_is_at_least_one_rd(cc1, cc2) || cc_is_audio_acc(cc1, cc2)) {
- set_state_tc(port,
- TC_CT_ATTACH_WAIT_UNSUPPORTED);
+ set_state_tc(port, TC_CT_ATTACH_WAIT_UNSUPPORTED);
return;
}
@@ -1468,10 +1465,8 @@ static void tc_ct_attach_wait_vpd_run(const int port)
/* Debounce the cc state */
if (new_cc_state != tc[port].cc_state) {
tc[port].cc_state = new_cc_state;
- tc[port].cc_debounce = get_time().val +
- PD_T_CC_DEBOUNCE;
- tc[port].pd_debounce = get_time().val +
- PD_T_PD_DEBOUNCE;
+ tc[port].cc_debounce = get_time().val + PD_T_CC_DEBOUNCE;
+ tc[port].pd_debounce = get_time().val + PD_T_PD_DEBOUNCE;
return;
}
