drivers: ssd1673: fix SPI GPIO CS configuration
Use DT_SSD1673_SPI_GPIO_CS_DRV_NAME for CS configuration. Resolves: #10720 Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
parent
2d6a226b2e
commit
aee6764c32
2 changed files with 2 additions and 3 deletions
|
@ -36,7 +36,7 @@ struct ssd1673_data {
|
|||
struct device *busy;
|
||||
struct device *spi_dev;
|
||||
struct spi_config spi_config;
|
||||
#if defined(DT_SSD1673_SPI_GPIO_CS)
|
||||
#if defined(DT_SSD1673_SPI_GPIO_CS_DRV_NAME)
|
||||
struct spi_cs_control cs_ctrl;
|
||||
#endif
|
||||
u8_t contrast;
|
||||
|
@ -492,7 +492,7 @@ static int ssd1673_init(struct device *dev)
|
|||
gpio_pin_configure(driver->busy, DT_SSD1673_BUSY_PIN,
|
||||
GPIO_DIR_IN);
|
||||
|
||||
#if defined(DT_SSD1673_SPI_GPIO_CS)
|
||||
#if defined(DT_SSD1673_SPI_GPIO_CS_DRV_NAME)
|
||||
driver->cs_ctrl.gpio_dev = device_get_binding(
|
||||
DT_SSD1673_SPI_GPIO_CS_DRV_NAME);
|
||||
if (!driver->cs_ctrl.gpio_dev) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue