zephyr/emul/emul_bb_retimer.c: Format with clang-format
BRANCH=none
TEST=none
@@ -155,8 +155,7 @@ static int bb_emul_handle_write(struct i2c_emul *emul, int reg, int msg_len)
LOG_WRN("Got %d bytes of WR data, expected 4", msg_len - 2);
}
- if (reg <= BB_RETIMER_REG_DEVICE_ID ||
- reg >= BB_RETIMER_REG_COUNT ||
+ if (reg <= BB_RETIMER_REG_DEVICE_ID || reg >= BB_RETIMER_REG_COUNT ||
reg == BB_RETIMER_REG_TBT_CONTROL) {
if (data->error_on_ro_write) {
LOG_ERR("Writing to reg 0x%x which is RO", reg);
@@ -298,8 +297,7 @@ static int bb_emul_access_reg(struct i2c_emul *emul, int reg, int bytes,
*
* @return 0 indicating success (always)
*/
-static int bb_emul_init(const struct emul *emul,
- const struct device *parent)
+static int bb_emul_init(const struct emul *emul, const struct device *parent)
{
const struct i2c_common_emul_cfg *cfg = emul->cfg;
struct i2c_common_emul_data *data = cfg->data;
@@ -347,7 +345,8 @@ static int bb_emul_init(const struct emul *emul,
DT_INST_FOREACH_STATUS_OKAY(BB_RETIMER_EMUL)
#define BB_RETIMER_EMUL_CASE(n) \
- case DT_INST_DEP_ORD(n): return &bb_emul_data_##n.common.emul;
+ case DT_INST_DEP_ORD(n): \
+ return &bb_emul_data_##n.common.emul;
/** Check description in emul_bb_emulator.h */
struct i2c_emul *bb_emul_get(int ord)
