From 1b370eead8541bd4c1808ad287456ef54d3aca35 Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Wed, 23 Feb 2022 23:42:13 +0000 Subject: [PATCH] drivers: display: gd7965: fix build break gd7965 broke after 42bbb30ecf: /zephyr/drivers/display/gd7965.c: In function 'gd7965_init': /zephyr/drivers/display/gd7965.c:379:23: error: passing argument 1 of 'device_is_ready' from incompatible pointer type [-Werror=incompatible-pointer-types] 379 | if (!device_is_ready(&config->reset_gpio.port)) { | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | const struct device * const* Fix all the occurrences. Signed-off-by: Fabio Baltieri --- drivers/display/gd7965.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/display/gd7965.c b/drivers/display/gd7965.c index a2dc02e7779..715b8dae7a2 100644 --- a/drivers/display/gd7965.c +++ b/drivers/display/gd7965.c @@ -376,14 +376,14 @@ static int gd7965_init(const struct device *dev) return -ENODEV; } - if (!device_is_ready(&config->reset_gpio.port)) { + if (!device_is_ready(config->reset_gpio.port)) { LOG_ERR("Reset GPIO device not ready"); return -ENODEV; } gpio_pin_configure_dt(&config->reset_gpio, GPIO_OUTPUT_INACTIVE); - if (!device_is_ready(&config->dc_gpio.port)) { + if (!device_is_ready(config->dc_gpio.port)) { LOG_ERR("DC GPIO device not ready"); return -ENODEV; } @@ -391,7 +391,7 @@ static int gd7965_init(const struct device *dev) gpio_pin_configure_dt(&config->dc_gpio, GPIO_OUTPUT_INACTIVE); - if (!device_is_ready(&config->busy_gpio.port)) { + if (!device_is_ready(config->busy_gpio.port)) { LOG_ERR("Busy GPIO device not ready"); return -ENODEV; }