diff options
Diffstat (limited to 'zephyr/emul/emul_pi3usb9201.c')
-rw-r--r-- | zephyr/emul/emul_pi3usb9201.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/zephyr/emul/emul_pi3usb9201.c b/zephyr/emul/emul_pi3usb9201.c index 7feedbf7d0..babef58c75 100644 --- a/zephyr/emul/emul_pi3usb9201.c +++ b/zephyr/emul/emul_pi3usb9201.c @@ -169,18 +169,15 @@ static int pi3usb9201_emul_init(const struct emul *emul, return ret; } -#define PI3USB9201_EMUL(n) \ - static struct pi3usb9201_emul_data \ - pi3usb9201_emul_data_##n = {}; \ - \ - static const struct pi3usb9201_emul_cfg \ - pi3usb9201_emul_cfg_##n = { \ - .i2c_label = DT_INST_BUS_LABEL(n), \ - .data = &pi3usb9201_emul_data_##n, \ - .addr = DT_INST_REG_ADDR(n), \ - }; \ - EMUL_DEFINE(pi3usb9201_emul_init, DT_DRV_INST(n), \ - &pi3usb9201_emul_cfg_##n) +#define PI3USB9201_EMUL(n) \ + static struct pi3usb9201_emul_data pi3usb9201_emul_data_##n = {}; \ + static const struct pi3usb9201_emul_cfg pi3usb9201_emul_cfg_##n = { \ + .i2c_label = DT_INST_BUS_LABEL(n), \ + .data = &pi3usb9201_emul_data_##n, \ + .addr = DT_INST_REG_ADDR(n), \ + }; \ + EMUL_DEFINE(pi3usb9201_emul_init, DT_DRV_INST(n), \ + &pi3usb9201_emul_cfg_##n, &pi3usb9201_emul_data_##n) DT_INST_FOREACH_STATUS_OKAY(PI3USB9201_EMUL) |