Skip to content

Commit 5c50591

Browse files
galakcarlescufi
authored andcommitted
emul: emul_bmi160: Remove unused struct element
The bus_label field of the struct was not used, so remove it. This lets us remove one of the last users of DT_INST_BUS_LABEL. Signed-off-by: Kumar Gala <galak@kernel.org>
1 parent 962eca6 commit 5c50591

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

subsys/emul/emul_bmi160.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ struct bmi160_emul_data {
3939

4040
/** Static configuration for the emulator */
4141
struct bmi160_emul_cfg {
42-
/** Label of the SPI bus this emulator connects to */
43-
const char *bus_label;
4442
/** Chip registers */
4543
uint8_t *reg;
4644
union {
@@ -393,7 +391,6 @@ static int emul_bosch_bmi160_init_i2c(const struct emul *emul,
393391
#define BMI160_EMUL_SPI(n) \
394392
BMI160_EMUL_DATA(n) \
395393
static const struct bmi160_emul_cfg bmi160_emul_cfg_##n = { \
396-
.bus_label = DT_INST_BUS_LABEL(n), \
397394
.reg = bmi160_emul_reg_##n, \
398395
.chipsel = DT_INST_REG_ADDR(n) \
399396
}; \
@@ -402,7 +399,6 @@ static int emul_bosch_bmi160_init_i2c(const struct emul *emul,
402399
#define BMI160_EMUL_I2C(n) \
403400
BMI160_EMUL_DATA(n) \
404401
static const struct bmi160_emul_cfg bmi160_emul_cfg_##n = { \
405-
.bus_label = DT_INST_BUS_LABEL(n), \
406402
.reg = bmi160_emul_reg_##n, \
407403
.addr = DT_INST_REG_ADDR(n) \
408404
}; \

0 commit comments

Comments
 (0)