drivers: Apply SPI API change to relevant places
Mostly drivers, but also one sample and one test. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
f8cc93de8c
commit
f6be2835bd
31 changed files with 81 additions and 65 deletions
|
@ -430,8 +430,7 @@ static const struct ssd1306_config ssd1306_config = {
|
|||
.bus = I2C_DT_SPEC_INST_GET(0),
|
||||
#elif DT_INST_ON_BUS(0, spi)
|
||||
.bus = SPI_DT_SPEC_INST_GET(
|
||||
0, SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB |
|
||||
SPI_WORD_SET(8) | SPI_LINES_SINGLE, 0),
|
||||
0, SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB | SPI_WORD_SET(8), 0),
|
||||
.data_cmd = GPIO_DT_SPEC_INST_GET(0, data_cmd_gpios),
|
||||
#endif
|
||||
.reset = GPIO_DT_SPEC_INST_GET_OR(0, reset_gpios, { 0 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue