diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 15:25:02 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-30 21:58:26 +0000 |
commit | e9749ed13be95b93105cb41cb202614b826494fa (patch) | |
tree | 83d50be91d8f23f456e5502be02656e5fb49a7e5 /test/vpd_api.c | |
parent | f84c09f0d9be09bbf0682931ce2922bd254802a9 (diff) | |
download | chrome-ec-e9749ed13be95b93105cb41cb202614b826494fa.tar.gz |
test/vpd_api.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: I2fb342e3f47f19b2dd570c4cb127d1a2d18554ec
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730318
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'test/vpd_api.c')
-rw-r--r-- | test/vpd_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/vpd_api.c b/test/vpd_api.c index 65e86adb96..5eb61cd5d2 100644 --- a/test/vpd_api.c +++ b/test/vpd_api.c @@ -33,11 +33,11 @@ #endif #ifndef CC_RA -#define CC_RA(port, cc, sel) (cc < pd_src_rd_threshold[ct_cc_rp_value]) +#define CC_RA(port, cc, sel) (cc < pd_src_rd_threshold[ct_cc_rp_value]) #endif #define CC_RD(cc) ((cc >= PD_SRC_RD_THRESHOLD) && (cc < PD_SRC_VNC)) #ifndef CC_NC -#define CC_NC(port, cc, sel) (cc >= PD_SRC_VNC) +#define CC_NC(port, cc, sel) (cc >= PD_SRC_VNC) #endif /* @@ -54,7 +54,7 @@ #define PD_SNK_VA PD_SNK_VA_MV #endif -#define CC_RP(cc) (cc >= PD_SNK_VA) +#define CC_RP(cc) (cc >= PD_SNK_VA) /* Mock Board State */ static enum vpd_pwr mock_vconn_pwr_sel_odl; @@ -266,7 +266,7 @@ static int vpd_cc_voltage_to_status(int cc_volt, int cc_pull) return TYPEC_CC_VOLT_RA; else return TYPEC_CC_VOLT_RD; - /* If we have a pull-down, then we are sink, check for Rp. */ + /* If we have a pull-down, then we are sink, check for Rp. */ } else if (cc_pull == TYPEC_CC_RD || cc_pull == TYPEC_CC_RA_RD) { if (cc_volt >= TYPE_C_SRC_3000_THRESHOLD) return TYPEC_CC_VOLT_RP_3_0; |