sensor: ms5607: Add chip select flags
Adds the chip select devicetree flags to the spi_cs_control instance. Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
f7e2265fb8
commit
ac66b76934
1 changed files with 1 additions and 0 deletions
|
@ -181,6 +181,7 @@ int ms5607_spi_init(struct device *dev)
|
|||
}
|
||||
|
||||
ms5607_cs_ctrl.gpio_pin = DT_INST_SPI_DEV_CS_GPIOS_PIN(0);
|
||||
ms5607_cs_ctrl.gpio_dt_flags = DT_INST_SPI_DEV_CS_GPIOS_FLAGS(0);
|
||||
ms5607_cs_ctrl.delay = 0U;
|
||||
|
||||
ms5607_spi_conf.cs = &ms5607_cs_ctrl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue