zephyr/emul/emul_syv682x.c: Format with clang-format
BRANCH=none
TEST=none
@@ -108,8 +108,8 @@ void syv682x_emul_set_condition(struct i2c_emul *emul, uint8_t status,
data->reg[SYV682X_CONTROL_4_REG] |= control_4_interrupt;
/* These conditions disable the power path. */
- if (status & (SYV682X_STATUS_TSD | SYV682X_STATUS_OVP |
- SYV682X_STATUS_OC_HV)) {
+ if (status &
+ (SYV682X_STATUS_TSD | SYV682X_STATUS_OVP | SYV682X_STATUS_OC_HV)) {
data->reg[SYV682X_CONTROL_1_REG] |= SYV682X_CONTROL_1_PWR_ENB;
}
@@ -123,10 +123,9 @@ void syv682x_emul_set_condition(struct i2c_emul *emul, uint8_t status,
/* VBAT_OVP disconnects CC and VCONN. */
if (control_4_interrupt & SYV682X_CONTROL_4_VBAT_OVP) {
- data->reg[SYV682X_CONTROL_4_REG] &= ~(SYV682X_CONTROL_4_CC1_BPS
- | SYV682X_CONTROL_4_CC2_BPS
- | SYV682X_CONTROL_4_VCONN1
- | SYV682X_CONTROL_4_VCONN2);
+ data->reg[SYV682X_CONTROL_4_REG] &= ~(
+ SYV682X_CONTROL_4_CC1_BPS | SYV682X_CONTROL_4_CC2_BPS |
+ SYV682X_CONTROL_4_VCONN1 | SYV682X_CONTROL_4_VCONN2);
}
syv682x_emul_set_alert(data, status | control_4_interrupt);
@@ -291,8 +290,8 @@ static int syv682x_emul_init(const struct emul *emul,
DT_INST_FOREACH_STATUS_OKAY(SYV682X_EMUL)
#define SYV682X_EMUL_CASE(n) \
- case DT_INST_DEP_ORD(n): return &syv682x_emul_data_##n.common.emul;
-
+ case DT_INST_DEP_ORD(n): \
+ return &syv682x_emul_data_##n.common.emul;
struct i2c_emul *syv682x_emul_get(int ord)
{
