Skip to content

Commit b8c276a

Browse files
committed
emul: emul_bmi160: Remove unused bus_label
The bus_label is not used and is using DT_INST_BUS_LABEL which is now deprecated and thus causes an error when running CI. Signed-off-by: Kumar Gala <galak@kernel.org>
1 parent c77035c commit b8c276a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

subsys/emul/emul_bmi160.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ struct bmi160_emul_data {
3131

3232
/** Static configuration for the emulator */
3333
struct bmi160_emul_cfg {
34-
/** Label of the SPI bus this emulator connects to */
35-
const char *bus_label;
3634
/** Chip registers */
3735
uint8_t *reg;
3836
union {
@@ -327,17 +325,15 @@ static int emul_bosch_bmi160_init(const struct emul *target, const struct device
327325
/* Instantiation macros used when a device is on a SPI bus */
328326
#define BMI160_EMUL_SPI(n) \
329327
BMI160_EMUL_DATA(n) \
330-
static const struct bmi160_emul_cfg bmi160_emul_cfg_##n = { .bus_label = \
331-
DT_INST_BUS_LABEL(n), \
328+
static const struct bmi160_emul_cfg bmi160_emul_cfg_##n = { \
332329
.reg = bmi160_emul_reg_##n, \
333330
.chipsel = \
334331
DT_INST_REG_ADDR(n) }; \
335332
BMI160_EMUL_DEFINE(n, bmi160_emul_api_spi)
336333

337334
#define BMI160_EMUL_I2C(n) \
338335
BMI160_EMUL_DATA(n) \
339-
static const struct bmi160_emul_cfg bmi160_emul_cfg_##n = { .bus_label = \
340-
DT_INST_BUS_LABEL(n), \
336+
static const struct bmi160_emul_cfg bmi160_emul_cfg_##n = { \
341337
.reg = bmi160_emul_reg_##n, \
342338
.addr = DT_INST_REG_ADDR(n) }; \
343339
BMI160_EMUL_DEFINE(n, bmi160_emul_api_i2c)

0 commit comments

Comments
 (0)