Skip to content

Commit ac66b76

Browse files
Jordan Yatesgalak
Jordan Yates
authored andcommitted
sensor: ms5607: Add chip select flags
Adds the chip select devicetree flags to the spi_cs_control instance. Signed-off-by: Jordan Yates <[email protected]>
1 parent f7e2265 commit ac66b76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/sensor/ms5607/ms5607_spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ int ms5607_spi_init(struct device *dev)
181181
}
182182

183183
ms5607_cs_ctrl.gpio_pin = DT_INST_SPI_DEV_CS_GPIOS_PIN(0);
184+
ms5607_cs_ctrl.gpio_dt_flags = DT_INST_SPI_DEV_CS_GPIOS_FLAGS(0);
184185
ms5607_cs_ctrl.delay = 0U;
185186

186187
ms5607_spi_conf.cs = &ms5607_cs_ctrl;

0 commit comments

Comments
 (0)