driver/sensor: IIS3DHHC: Fix DT_ macro typo for CS GPIO
The correct suffix name for selecting the GPIO for SPI Chip Select is _CS_GPIOS_CONTROLLER and not _CS_GPIO_CONTROLLER. Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
parent
dfd26dbbeb
commit
c79925bd0f
2 changed files with 3 additions and 3 deletions
|
@ -239,7 +239,7 @@ static const struct iis3dhhc_config iis3dhhc_config = {
|
||||||
SPI_MODE_CPHA | SPI_WORD_SET(8) |
|
SPI_MODE_CPHA | SPI_WORD_SET(8) |
|
||||||
SPI_LINES_SINGLE),
|
SPI_LINES_SINGLE),
|
||||||
.spi_conf.slave = DT_INST_0_ST_IIS3DHHC_BASE_ADDRESS,
|
.spi_conf.slave = DT_INST_0_ST_IIS3DHHC_BASE_ADDRESS,
|
||||||
#if defined(DT_INST_0_ST_IIS3DHHC_CS_GPIO_CONTROLLER)
|
#if defined(DT_INST_0_ST_IIS3DHHC_CS_GPIOS_CONTROLLER)
|
||||||
.gpio_cs_port = DT_INST_0_ST_IIS3DHHC_CS_GPIOS_CONTROLLER,
|
.gpio_cs_port = DT_INST_0_ST_IIS3DHHC_CS_GPIOS_CONTROLLER,
|
||||||
.cs_gpio = DT_INST_0_ST_IIS3DHHC_CS_GPIOS_PIN,
|
.cs_gpio = DT_INST_0_ST_IIS3DHHC_CS_GPIOS_PIN,
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ struct iis3dhhc_config {
|
||||||
#endif
|
#endif
|
||||||
#ifdef DT_ST_IIS3DHHC_BUS_SPI
|
#ifdef DT_ST_IIS3DHHC_BUS_SPI
|
||||||
struct spi_config spi_conf;
|
struct spi_config spi_conf;
|
||||||
#if defined(DT_INST_0_ST_IIS3DHHC_CS_GPIO_CONTROLLER)
|
#if defined(DT_INST_0_ST_IIS3DHHC_CS_GPIOS_CONTROLLER)
|
||||||
const char *gpio_cs_port;
|
const char *gpio_cs_port;
|
||||||
u8_t cs_gpio;
|
u8_t cs_gpio;
|
||||||
#endif
|
#endif
|
||||||
|
@ -62,7 +62,7 @@ struct iis3dhhc_data {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* CONFIG_IIS3DHHC_TRIGGER */
|
#endif /* CONFIG_IIS3DHHC_TRIGGER */
|
||||||
#if defined(DT_INST_0_ST_IIS3DHHC_CS_GPIO_CONTROLLER)
|
#if defined(DT_INST_0_ST_IIS3DHHC_CS_GPIOS_CONTROLLER)
|
||||||
struct spi_cs_control cs_ctrl;
|
struct spi_cs_control cs_ctrl;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue