Skip to content

Commit 9f5de86

Browse files
gmarullcarlescufi
authored andcommitted
drivers: display: st7735r: replace non-existing DT_INST_HAS_PROP
DT_INST_HAS_PROP macro is not available, DT_INST_NODE_HAS_PROP needs to be used instead. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 56e325c commit 9f5de86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/display/display_st7735r.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,13 +541,13 @@ static const struct display_driver_api st7735r_api = {
541541
.cmd_data.pin = DT_INST_GPIO_PIN(inst, cmd_data_gpios), \
542542
.cmd_data.flags = DT_INST_GPIO_FLAGS(inst, cmd_data_gpios), \
543543
.reset.name = UTIL_AND( \
544-
DT_INST_HAS_PROP(inst, reset_gpios), \
544+
DT_INST_NODE_HAS_PROP(inst, reset_gpios), \
545545
DT_INST_GPIO_LABEL(inst, reset_gpios)), \
546546
.reset.pin = UTIL_AND( \
547-
DT_INST_HAS_PROP(inst, reset_gpios), \
547+
DT_INST_NODE_HAS_PROP(inst, reset_gpios), \
548548
DT_INST_GPIO_PIN(inst, reset_gpios)), \
549549
.reset.flags = UTIL_AND( \
550-
DT_INST_HAS_PROP(inst, reset_gpios), \
550+
DT_INST_NODE_HAS_PROP(inst, reset_gpios), \
551551
DT_INST_GPIO_FLAGS(inst, reset_gpios)), \
552552
.width = DT_INST_PROP(inst, width), \
553553
.height = DT_INST_PROP(inst, height), \

0 commit comments

Comments
 (0)