drivers: display: st7789v: fix gpio_dt_spec initialization
The `gpio_dt_spec` structures where never initialised, therefore the driver
would always fault with "E: Reset GPIO device not ready" printed to the
console.
Fixes: 069bf6be44
("drivers: display: st7789v: use gpio_dt_spec")
Signed-off-by: Casper Meijn <casper@meijn.net>
This commit is contained in:
parent
b0eb3207a9
commit
2eb1feea91
1 changed files with 4 additions and 0 deletions
|
@ -409,6 +409,10 @@ static const struct display_driver_api st7789v_api = {
|
|||
|
||||
static const struct st7789v_config st7789v_config = {
|
||||
.bus = SPI_DT_SPEC_INST_GET(0, SPI_OP_MODE_MASTER | SPI_WORD_SET(8), 0),
|
||||
.cmd_data_gpio = GPIO_DT_SPEC_INST_GET(0, cmd_data_gpios),
|
||||
#if DT_INST_NODE_HAS_PROP(0, reset_gpios)
|
||||
.reset_gpio = GPIO_DT_SPEC_INST_GET(0, reset_gpios),
|
||||
#endif
|
||||
};
|
||||
|
||||
static struct st7789v_data st7789v_data = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue