common/usb_pd_dual_role.c: Format with clang-format
BRANCH=none
TEST=none
@@ -158,8 +158,8 @@ int pd_find_pdo_index(uint32_t src_cap_cnt, const uint32_t * const src_caps,
prefer_cur = 1;
}
/*
- * pick the largest power if we don't see one staisfy
- * desired power
+ * pick the largest power if we don't see one
+ * staisfy desired power
*/
} else if (cur_uw == 0 || uw > cur_uw) {
prefer_cur = 1;
@@ -265,8 +265,7 @@ void pd_build_request(int32_t vpd_vdo, uint32_t *rdo, uint32_t *ma,
max_request_allowed = 1;
if (IS_ENABLED(CONFIG_USB_PD_DPS) && dps_is_enabled())
- max_request_mv =
- MIN(max_request_mv, dps_get_dynamic_voltage());
+ max_request_mv = MIN(max_request_mv, dps_get_dynamic_voltage());
/*
* If currently charging on a different port, or we are not allowed to
@@ -381,8 +380,7 @@ void pd_process_source_cap(int port, int cnt, uint32_t *src_caps)
/* Get max power info that we could request */
pd_find_pdo_index(pd_get_src_cap_cnt(port),
- pd_get_src_caps(port),
- max_mv, &pdo);
+ pd_get_src_caps(port), max_mv, &pdo);
pd_extract_pdo_power(pdo, &ma, &mv, &unused);
/* Set max. limit, but apply 500mA ceiling */
@@ -397,8 +395,7 @@ bool pd_is_battery_capable(void)
bool capable;
/* Battery is present and at some minimum percentage. */
- capable = (usb_get_battery_soc() >=
- CONFIG_USB_PD_TRY_SRC_MIN_BATT_SOC);
+ capable = (usb_get_battery_soc() >= CONFIG_USB_PD_TRY_SRC_MIN_BATT_SOC);
#ifdef CONFIG_BATTERY_REVIVE_DISCONNECT
/*
@@ -406,8 +403,7 @@ bool pd_is_battery_capable(void)
* FET may not be enabled and so attempting being a SRC may cut off
* our only power source at the time.
*/
- capable &= (battery_get_disconnect_state() ==
- BATTERY_NOT_DISCONNECTED);
+ capable &= (battery_get_disconnect_state() == BATTERY_NOT_DISCONNECTED);
#elif defined(CONFIG_BATTERY_PRESENT_CUSTOM) || \
defined(CONFIG_BATTERY_PRESENT_GPIO)
/*
