sensor: lsm6dsv16x: fix rtio/iodev prefix names
Use prefix for rtio_ctx and iodev instance names in I2C case. Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
parent
8c7e9a5f6c
commit
242f3e2364
1 changed files with 2 additions and 2 deletions
|
@ -1387,8 +1387,8 @@ static int lsm6dsv16x_pm_action(const struct device *dev, enum pm_device_action
|
|||
static struct lsm6dsv16x_data prefix##_data_##inst = { \
|
||||
IF_ENABLED(UTIL_AND(CONFIG_LSM6DSV16X_STREAM, \
|
||||
CONFIG_I2C_RTIO), \
|
||||
(.rtio_ctx = &lsm6dsv16x_rtio_ctx_##inst, \
|
||||
.iodev = &lsm6dsv16x_iodev_##inst, \
|
||||
(.rtio_ctx = &prefix##_rtio_ctx_##inst, \
|
||||
.iodev = &prefix##_iodev_##inst, \
|
||||
.bus_type = BUS_I2C,)) \
|
||||
}; \
|
||||
static const struct lsm6dsv16x_config prefix##_config_##inst = \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue