Skip to content

Commit ca1ee72

Browse files
committed
drivers: Fix deprecated SPI_DT_SPEC_INST_GET usage
This macro doesn't accept a delay parameter anymore (well, it does, but it's deprecated and will trigger build warnings). Just remove it from the places that were still passing it. Signed-off-by: Johan Hedberg <[email protected]>
1 parent 0dfef14 commit ca1ee72

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

drivers/display/display_lpm013m126.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ static const struct display_driver_api lpm_api = {
254254
static const struct lpm013m126_config lpm_cfg_##inst = { \
255255
.bus = SPI_DT_SPEC_INST_GET(inst, SPI_OP_MODE_MASTER | \
256256
SPI_WORD_SET(8) | \
257-
SPI_TRANSFER_MSB, 0), \
257+
SPI_TRANSFER_MSB), \
258258
.disp_gpio = GPIO_DT_SPEC_INST_GET(inst, disp_gpios), \
259259
.extcomin_gpio = GPIO_DT_SPEC_INST_GET(inst, extcomin_gpios), \
260260
.extcomin_freq = DT_INST_PROP(inst, extcomin_frequency), \

drivers/gpio/gpio_pcal9722.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ static DEVICE_API(gpio, api_table) = {
468468

469469
#define GPIO_PCAL9722_INIT(n) \
470470
static const struct pcal9722_config pcal9722_cfg_##n = { \
471-
.spi = SPI_DT_SPEC_INST_GET(n, SPI_OP_MODE_MASTER | SPI_WORD_SET(8), 0), \
471+
.spi = SPI_DT_SPEC_INST_GET(n, SPI_OP_MODE_MASTER | SPI_WORD_SET(8)), \
472472
.common = \
473473
{ \
474474
.port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(n), \

drivers/sensor/st/iis3dwb/iis3dwb.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@ static int iis3dwb_init(const struct device *dev)
360360
{ \
361361
STMEMSC_CTX_SPI(&iis3dwb_config_##inst.stmemsc_cfg), \
362362
.stmemsc_cfg = { \
363-
.spi = SPI_DT_SPEC_INST_GET(inst, \
364-
IIS3DWB_SPI_OPERATION, 0), \
363+
.spi = SPI_DT_SPEC_INST_GET(inst, IIS3DWB_SPI_OPERATION), \
365364
}, \
366365
\
367366
.range = DT_INST_PROP(inst, range), \

drivers/sensor/wsen/wsen_isds_2536030320001/wsen_isds_2536030320001.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ static int isds_2536030320001_init(const struct device *dev)
900900
#define ISDS_2536030320001_CONFIG_SPI(inst) \
901901
{.bus_cfg = \
902902
{ \
903-
.spi = SPI_DT_SPEC_INST_GET(inst, ISDS_2536030320001_SPI_OPERATION, 0), \
903+
.spi = SPI_DT_SPEC_INST_GET(inst, ISDS_2536030320001_SPI_OPERATION), \
904904
}, \
905905
ISDS_2536030320001_CONFIG_COMMON(inst)}
906906

0 commit comments

Comments
 (0)