summaryrefslogtreecommitdiff
path: root/board/servo_v4/usb_pd_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/servo_v4/usb_pd_config.h')
-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
+ */
}
}