driver/retimer/kb800x.c: Format with clang-format
BRANCH=none
TEST=none
@@ -79,7 +79,8 @@ static const uint8_t usb_ss_lane_to_eb[] = { [KB800X_TX0] = KB800X_EB4,
/* Assign a phy TX to an elastic buffer */
static int kb800x_assign_tx_to_eb(const struct usb_mux *me,
- enum kb800x_phy_lane phy_lane, enum kb800x_eb eb)
+ enum kb800x_phy_lane phy_lane,
+ enum kb800x_eb eb)
{
uint8_t field_value = 0;
uint8_t regval;
@@ -98,17 +99,16 @@ static int kb800x_assign_tx_to_eb(const struct usb_mux *me,
regval | field_value);
}
-
/* Assign a phy RX to an elastic buffer */
static int kb800x_assign_rx_to_eb(const struct usb_mux *me,
- enum kb800x_phy_lane phy_lane, enum kb800x_eb eb)
+ enum kb800x_phy_lane phy_lane,
+ enum kb800x_eb eb)
{
uint16_t address = 0;
uint8_t field_value = 0;
uint8_t regval = 0;
int rv;
-
field_value = rx_phy_lane_to_field[phy_lane];
address = rx_eb_to_address[eb];
@@ -246,13 +246,11 @@ static int kb800x_xbar_override(const struct usb_mux *me)
for (i = KB800X_A0; i < KB800X_PHY_LANE_COUNT; ++i) {
rv = kb800x_assign_lane(
- me, i,
- kb800x_control[me->usb_port].ss_lanes[i]);
+ me, i, kb800x_control[me->usb_port].ss_lanes[i]);
if (rv)
return rv;
}
- return kb800x_write(me, KB800X_REG_XBAR_OVR,
- KB800X_XBAR_OVR_EN);
+ return kb800x_write(me, KB800X_REG_XBAR_OVR, KB800X_XBAR_OVR_EN);
}
#endif /* CONFIG_KB800X_CUSTOM_XBAR */
