From aff97fe7f6b0ed29fedacdd450819f16b2867067 Mon Sep 17 00:00:00 2001 From: Marco Peter Date: Wed, 14 Oct 2020 11:58:08 +0200 Subject: [PATCH] driver: ssd1306: Add chip select flags for SPI This adds the chip select device tree flags to the spi_cs_control instance. Signed-off-by: Marco Peter --- drivers/display/ssd1306.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/display/ssd1306.c b/drivers/display/ssd1306.c index 726e81bccf1..4dfffcb9181 100644 --- a/drivers/display/ssd1306.c +++ b/drivers/display/ssd1306.c @@ -414,6 +414,7 @@ static int ssd1306_init(const struct device *dev) driver->cs_ctrl.gpio_dev = device_get_binding( DT_INST_SPI_DEV_CS_GPIOS_LABEL(0)); driver->cs_ctrl.gpio_pin = DT_INST_SPI_DEV_CS_GPIOS_PIN(0); + driver->cs_ctrl.gpio_dt_flags = DT_INST_SPI_DEV_CS_GPIOS_FLAGS(0); driver->cs_ctrl.delay = 0U; driver->spi_config.cs = &driver->cs_ctrl; #endif /* DT_INST_SPI_DEV_HAS_CS_GPIOS(0) */