drivers: display: Update setting the mode in the st7796s driver

MIPI mode is read from the device tree.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
Mahesh Mahadevan 2024-06-12 11:46:46 -05:00 committed by Anas Nashif
parent 53b5dbfb88
commit 6236779d32

View file

@ -319,7 +319,8 @@ static const struct display_driver_api st7796s_api = {
SPI_OP_MODE_MASTER | \
SPI_WORD_SET(8), \
0), \
.mode = MIPI_DBI_MODE_SPI_4WIRE, \
.mode = DT_INST_PROP_OR(n, mipi_mode, \
MIPI_DBI_MODE_SPI_4WIRE), \
}, \
.width = DT_INST_PROP(n, width), \
.height = DT_INST_PROP(n, height), \