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 <fabio.baltieri@gmail.com>
This commit is contained in:
parent
1c2d72cfad
commit
1b370eead8
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue