summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-07-06 11:41:54 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-07 05:43:57 +0000
commitf5f9c8819f9ade8a885b80e9c06e197ccb62d66d (patch)
tree07db5f87c1ea89770b66cbc3329b99743333417a
parent251c8c0b3da82030b2933c886fd0291b83e0a422 (diff)
downloadchrome-ec-f5f9c8819f9ade8a885b80e9c06e197ccb62d66d.tar.gz
board/servo_v4/usb_pd_config.h: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Tricium: disable Change-Id: Ice808816780fbf197a0ab9dcb671842e306ae373 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3749419 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r--board/servo_v4/usb_pd_config.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/board/servo_v4/usb_pd_config.h b/board/servo_v4/usb_pd_config.h
index 4b42bd6c29..aa4e150645 100644
--- a/board/servo_v4/usb_pd_config.h
+++ b/board/servo_v4/usb_pd_config.h
@@ -193,23 +193,25 @@ static inline void pd_select_polarity(int port, int polarity)
if (port == 0) {
/* CHG use the right comparator inverted input for COMP2 */
STM32_COMP_CSR = (val & ~STM32_COMP_CMP2INSEL_MASK) |
- (polarity ? STM32_COMP_CMP2INSEL_INM4 /* PA4:
- C0_CC2
- */
- :
- STM32_COMP_CMP2INSEL_INM6); /* PA2:
- C0_CC1
- */
+ (polarity ?
+ STM32_COMP_CMP2INSEL_INM4 /* PA4:
+ C0_CC2
+ */
+ :
+ STM32_COMP_CMP2INSEL_INM6); /* PA2:
+ C0_CC1
+ */
} else {
/* DUT use the right comparator inverted input for COMP1 */
STM32_COMP_CSR = (val & ~STM32_COMP_CMP1INSEL_MASK) |
- (polarity ? STM32_COMP_CMP1INSEL_INM5 /* PA5:
- C1_CC2
- */
- :
- STM32_COMP_CMP1INSEL_INM6); /* PA0:
- C1_CC1
- */
+ (polarity ?
+ STM32_COMP_CMP1INSEL_INM5 /* PA5:
+ C1_CC2
+ */
+ :
+ STM32_COMP_CMP1INSEL_INM6); /* PA0:
+ C1_CC1
+ */
}
}