From 9f5de86e8a384c3359eb11303cc783e6c724e544 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Thu, 16 Dec 2021 10:29:45 +0100 Subject: [PATCH] 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 --- drivers/display/display_st7735r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/display/display_st7735r.c b/drivers/display/display_st7735r.c index aaa2002e712..2e988a9c178 100644 --- a/drivers/display/display_st7735r.c +++ b/drivers/display/display_st7735r.c @@ -541,13 +541,13 @@ static const struct display_driver_api st7735r_api = { .cmd_data.pin = DT_INST_GPIO_PIN(inst, cmd_data_gpios), \ .cmd_data.flags = DT_INST_GPIO_FLAGS(inst, cmd_data_gpios), \ .reset.name = UTIL_AND( \ - DT_INST_HAS_PROP(inst, reset_gpios), \ + DT_INST_NODE_HAS_PROP(inst, reset_gpios), \ DT_INST_GPIO_LABEL(inst, reset_gpios)), \ .reset.pin = UTIL_AND( \ - DT_INST_HAS_PROP(inst, reset_gpios), \ + DT_INST_NODE_HAS_PROP(inst, reset_gpios), \ DT_INST_GPIO_PIN(inst, reset_gpios)), \ .reset.flags = UTIL_AND( \ - DT_INST_HAS_PROP(inst, reset_gpios), \ + DT_INST_NODE_HAS_PROP(inst, reset_gpios), \ DT_INST_GPIO_FLAGS(inst, reset_gpios)), \ .width = DT_INST_PROP(inst, width), \ .height = DT_INST_PROP(inst, height), \