driver/usb_mux/pi3usb3x532.c: Format with clang-format
BRANCH=none
TEST=none
#include "usb_mux.h"
#include "util.h"
-static int pi3usb3x532_read(const struct usb_mux *me,
- uint8_t reg, uint8_t *val)
+static int pi3usb3x532_read(const struct usb_mux *me, uint8_t reg, uint8_t *val)
{
int read, res;
@@ -33,8 +32,7 @@ static int pi3usb3x532_read(const struct usb_mux *me,
return EC_SUCCESS;
}
-static int pi3usb3x532_write(const struct usb_mux *me,
- uint8_t reg, uint8_t val)
+static int pi3usb3x532_write(const struct usb_mux *me, uint8_t reg, uint8_t val)
{
if (reg != PI3USB3X532_REG_CONTROL)
return EC_ERROR_UNKNOWN;
@@ -58,10 +56,9 @@ int pi3usb3x532_check_vendor(const struct usb_mux *me, int *val)
static int pi3usb3x532_reset(const struct usb_mux *me)
{
- return pi3usb3x532_write(
- me,
- PI3USB3X532_REG_CONTROL,
- (PI3USB3X532_MODE_POWERDOWN & PI3USB3X532_CTRL_MASK) |
+ return pi3usb3x532_write(me, PI3USB3X532_REG_CONTROL,
+ (PI3USB3X532_MODE_POWERDOWN &
+ PI3USB3X532_CTRL_MASK) |
PI3USB3X532_CTRL_RSVD);
}
@@ -83,8 +80,7 @@ static int pi3usb3x532_init(const struct usb_mux *me)
}
/* Writes control register to set switch mode */
-static int pi3usb3x532_set_mux(const struct usb_mux *me,
- mux_state_t mux_state,
+static int pi3usb3x532_set_mux(const struct usb_mux *me, mux_state_t mux_state,
bool *ack_required)
{
uint8_t reg = 0;
@@ -104,8 +100,7 @@ static int pi3usb3x532_set_mux(const struct usb_mux *me,
}
/* Reads control register and updates mux_state accordingly */
-static int pi3usb3x532_get_mux(const struct usb_mux *me,
- mux_state_t *mux_state)
+static int pi3usb3x532_get_mux(const struct usb_mux *me, mux_state_t *mux_state)
{
uint8_t reg = 0;
uint8_t res;
