chip/it83xx/adc.c: Format with clang-format
BRANCH=none
TEST=none
@@ -168,15 +168,15 @@ int adc_read_channel(enum adc_channel ch)
IT83XX_ADC_ADCDVSTS2 = (1 << (adc_ch - CHIP_ADC_CH13));
mv = adc_raw_data * adc_channels[ch].factor_mul /
- adc_channels[ch].factor_div + adc_channels[ch].shift;
+ adc_channels[ch].factor_div +
+ adc_channels[ch].shift;
valid = 1;
}
if (!valid) {
CPRINTS("ADC failed to read!!! (regs=%x, %x, ch=%d, evt=%x)",
- IT83XX_ADC_ADCDVSTS,
- IT83XX_ADC_ADCDVSTS2,
- adc_ch, events);
+ IT83XX_ADC_ADCDVSTS, IT83XX_ADC_ADCDVSTS2, adc_ch,
+ events);
}
adc_disable_channel(adc_ch);
@@ -292,8 +292,8 @@ static void voltage_comparator_init(void)
*/
/* Select which ADC channel output voltage into comparator */
- *vcmp_ctrl_regs[idx].vcmp_ctrl |=
- vcmp_list[idx].adc_ch & VCMP_ADC_CH_MASK_L;
+ *vcmp_ctrl_regs[idx].vcmp_ctrl |= vcmp_list[idx].adc_ch &
+ VCMP_ADC_CH_MASK_L;
if (vcmp_list[idx].adc_ch & VCMP_ADC_CH_MASK_H)
*vcmp_ctrl_regs[idx].vcmp_adc_chm |= ADC_VCMP_VCMPCSELM;
