Skip to content

Commit c9a1db6

Browse files
swift-tknashif
authored andcommitted
tests: mspi: fix incorrect DT macro used in api test
DT macro should be used is DT_ENUM* for enum type bindings Signed-off-by: Swift Tian <[email protected]>
1 parent 17e62bc commit c9a1db6

File tree

1 file changed

+2
-2
lines changed
  • tests/drivers/mspi/api/src

1 file changed

+2
-2
lines changed

tests/drivers/mspi/api/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ static struct gpio_dt_spec ce_gpios[] = MSPI_CE_GPIOS_DT_SPEC_GET(MSPI_BUS_NODE)
3131
#if TEST_MSPI_REINIT
3232
struct mspi_cfg hardware_cfg = {
3333
.channel_num = 0,
34-
.op_mode = DT_PROP_OR(MSPI_BUS_NODE, op_mode, MSPI_OP_MODE_CONTROLLER),
35-
.duplex = DT_PROP_OR(MSPI_BUS_NODE, duplex, MSPI_HALF_DUPLEX),
34+
.op_mode = DT_ENUM_IDX_OR(MSPI_BUS_NODE, op_mode, MSPI_OP_MODE_CONTROLLER),
35+
.duplex = DT_ENUM_IDX_OR(MSPI_BUS_NODE, duplex, MSPI_HALF_DUPLEX),
3636
.dqs_support = DT_PROP_OR(MSPI_BUS_NODE, dqs_support, false),
3737
.ce_group = ce_gpios,
3838
.num_ce_gpios = ARRAY_SIZE(ce_gpios),

0 commit comments

Comments
 (0)