zephyr/emul/emul_smart_battery.c: Format with clang-format
BRANCH=none
TEST=none
@@ -659,8 +659,8 @@ static int sbat_emul_finalize_write_msg(struct i2c_emul *emul, int reg,
pec = cros_crc8_arg(data->msg_buf, 3, pec);
if (pec != data->msg_buf[3]) {
data->bat.error_code = STATUS_CODE_UNKNOWN_ERROR;
- LOG_ERR("Wrong PEC 0x%x != 0x%x",
- pec, data->msg_buf[3]);
+ LOG_ERR("Wrong PEC 0x%x != 0x%x", pec,
+ data->msg_buf[3]);
return -EIO;
}
@@ -785,8 +785,7 @@ static int sbat_emul_access_reg(struct i2c_emul *emul, int reg, int bytes,
*
* @return 0 indicating success (always)
*/
-static int sbat_emul_init(const struct emul *emul,
- const struct device *parent)
+static int sbat_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;
@@ -883,7 +882,8 @@ static int sbat_emul_init(const struct emul *emul,
DT_INST_FOREACH_STATUS_OKAY(SMART_BATTERY_EMUL)
#define SMART_BATTERY_EMUL_CASE(n) \
- case DT_INST_DEP_ORD(n): return &sbat_emul_data_##n.common.emul;
+ case DT_INST_DEP_ORD(n): \
+ return &sbat_emul_data_##n.common.emul;
/** Check description in emul_smart_battery.h */
struct i2c_emul *sbat_emul_get_ptr(int ord)
