driver/usb_mux/ps8743.c: Format with clang-format
BRANCH=none
TEST=none
@@ -25,24 +25,21 @@ static enum usb_conn_status saved_usb_conn_status[CONFIG_USB_PD_PORT_MAX_COUNT];
int ps8743_read(const struct usb_mux *me, uint8_t reg, int *val)
{
- return i2c_read8(me->i2c_port, me->i2c_addr_flags,
- reg, val);
+ return i2c_read8(me->i2c_port, me->i2c_addr_flags, reg, val);
}
int ps8743_write(const struct usb_mux *me, uint8_t reg, uint8_t val)
{
- return i2c_write8(me->i2c_port, me->i2c_addr_flags,
- reg, val);
+ return i2c_write8(me->i2c_port, me->i2c_addr_flags, reg, val);
}
int ps8743_field_update(const struct usb_mux *me, uint8_t reg, uint8_t mask,
uint8_t val)
{
- return i2c_field_update8(me->i2c_port, me->i2c_addr_flags,
- reg, mask, val);
+ return i2c_field_update8(me->i2c_port, me->i2c_addr_flags, reg, mask,
+ val);
}
-
int ps8743_check_chip_id(const struct usb_mux *me, int *val)
{
int id1;
@@ -121,10 +118,9 @@ static int ps8743_set_mux(const struct usb_mux *me, mux_state_t mux_state,
* For CE_DP, CE_USB, and FLIP, disable pin control and enable I2C
* control.
*/
- uint8_t reg = (PS8743_MODE_IN_HPD_CONTROL |
- PS8743_MODE_DP_REG_CONTROL |
- PS8743_MODE_USB_REG_CONTROL |
- PS8743_MODE_FLIP_REG_CONTROL);
+ uint8_t reg =
+ (PS8743_MODE_IN_HPD_CONTROL | PS8743_MODE_DP_REG_CONTROL |
+ PS8743_MODE_USB_REG_CONTROL | PS8743_MODE_FLIP_REG_CONTROL);
/* This driver does not use host command ACKs */
*ack_required = false;
