Skip to content

Commit e3f3b6d

Browse files
committed
drivers: sensor: Fix deprecated SPI_DT_IODEV_DEFINE usage
The delay parameter was removed from this macro, so don't pass it. Signed-off-by: Johan Hedberg <[email protected]>
1 parent 48a9b04 commit e3f3b6d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/sensor/pni/rm3100/rm3100.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@ static int rm3100_init(const struct device *dev)
230230
COND_CODE_1(DT_INST_ON_BUS(inst, spi), \
231231
(SPI_DT_IODEV_DEFINE(rm3100_bus_##inst, \
232232
DT_DRV_INST(inst), \
233-
SPI_OP_MODE_MASTER | SPI_WORD_SET(8) | SPI_TRANSFER_MSB, \
234-
0U)), \
233+
SPI_OP_MODE_MASTER | SPI_WORD_SET(8) | SPI_TRANSFER_MSB)),\
235234
()); \
236235
\
237236
static const struct rm3100_config rm3100_cfg_##inst = { \

drivers/sensor/st/iis3dwb/iis3dwb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ static int iis3dwb_init(const struct device *dev)
342342

343343
#define IIS3DWB_SPI_RTIO_DEFINE(inst) \
344344
SPI_DT_IODEV_DEFINE(iis3dwb_iodev_##inst, \
345-
DT_DRV_INST(inst), IIS3DWB_SPI_OPERATION, 0U); \
345+
DT_DRV_INST(inst), IIS3DWB_SPI_OPERATION); \
346346
RTIO_DEFINE(iis3dwb_rtio_ctx_##inst, 8, 8);
347347

348348
#ifdef CONFIG_IIS3DWB_TRIGGER

0 commit comments

Comments
 (0)