driver/usb_mux/it5205.c: Format with clang-format
BRANCH=none
TEST=none
@@ -25,15 +25,15 @@ static int it5205_write(const struct usb_mux *me, uint8_t reg, uint8_t val)
static int it5205h_sbu_update(const struct usb_mux *me, uint8_t reg,
uint8_t mask, enum mask_update_action action)
{
- return i2c_update8(me->i2c_port, IT5205H_SBU_I2C_ADDR_FLAGS,
- reg, mask, action);
+ return i2c_update8(me->i2c_port, IT5205H_SBU_I2C_ADDR_FLAGS, reg, mask,
+ action);
}
static int it5205h_sbu_field_update(const struct usb_mux *me, uint8_t reg,
uint8_t field_mask, uint8_t set_value)
{
- return i2c_field_update8(me->i2c_port, IT5205H_SBU_I2C_ADDR_FLAGS,
- reg, field_mask, set_value);
+ return i2c_field_update8(me->i2c_port, IT5205H_SBU_I2C_ADDR_FLAGS, reg,
+ field_mask, set_value);
}
struct mux_chip_id_t {
@@ -67,16 +67,16 @@ static int it5205_init(const struct usb_mux *me)
}
if (IS_ENABLED(CONFIG_USB_MUX_IT5205H_SBU_OVP)) {
- RETURN_ERROR(it5205h_sbu_field_update(me, IT5205H_REG_VSR,
- IT5205H_VREF_SELECT_MASK,
+ RETURN_ERROR(it5205h_sbu_field_update(
+ me, IT5205H_REG_VSR, IT5205H_VREF_SELECT_MASK,
IT5205H_VREF_SELECT_3_3V));
RETURN_ERROR(it5205h_sbu_field_update(me, IT5205H_REG_CSBUOVPSR,
IT5205H_OVP_SELECT_MASK,
IT5205H_OVP_3_68V));
- RETURN_ERROR(it5205h_sbu_update(me, IT5205H_REG_ISR,
- IT5205H_ISR_CSBU_MASK, MASK_CLR));
+ RETURN_ERROR(it5205h_sbu_update(
+ me, IT5205H_REG_ISR, IT5205H_ISR_CSBU_MASK, MASK_CLR));
RETURN_ERROR(it5205h_enable_csbu_switch(me, true));
}
@@ -86,8 +86,8 @@ static int it5205_init(const struct usb_mux *me)
enum ec_error_list it5205h_enable_csbu_switch(const struct usb_mux *me, bool en)
{
- return it5205h_sbu_update(me, IT5205H_REG_CSBUSR,
- IT5205H_CSBUSR_SWITCH, en ? MASK_SET : MASK_CLR);
+ return it5205h_sbu_update(me, IT5205H_REG_CSBUSR, IT5205H_CSBUSR_SWITCH,
+ en ? MASK_SET : MASK_CLR);
}
/* Writes control register to set switch mode */
