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:
Armando Visconti 2019-09-18 15:39:29 +02:00 committed by Kumar Gala
commit c79925bd0f
2 changed files with 3 additions and 3 deletions

View file

@ -239,7 +239,7 @@ static const struct iis3dhhc_config iis3dhhc_config = {
SPI_MODE_CPHA | SPI_WORD_SET(8) |
SPI_LINES_SINGLE),
.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,
.cs_gpio = DT_INST_0_ST_IIS3DHHC_CS_GPIOS_PIN,

View file

@ -28,7 +28,7 @@ struct iis3dhhc_config {
#endif
#ifdef DT_ST_IIS3DHHC_BUS_SPI
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;
u8_t cs_gpio;
#endif
@ -62,7 +62,7 @@ struct iis3dhhc_data {
#endif
#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;
#endif
};