drivers/sensor: iis2iclx: Fix sensorhub building
The iis2iclx driver was not building correctly when CONFIG_IIS2ICLX_SENSORHUB was enabled. Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
parent
aae2161542
commit
8b7a1a78c0
1 changed files with 3 additions and 0 deletions
|
@ -589,6 +589,9 @@ static int iis2iclx_init_chip(const struct device *dev)
|
|||
static int iis2iclx_init(const struct device *dev)
|
||||
{
|
||||
const struct iis2iclx_config * const config = dev->config;
|
||||
#if defined(CONFIG_IIS2ICLX_SENSORHUB)
|
||||
struct iis2iclx_data *data = dev->data;
|
||||
#endif /* CONFIG_IIS2ICLX_SENSORHUB */
|
||||
|
||||
if (config->bus_init(dev) < 0) {
|
||||
LOG_ERR("failed to initialize bus");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue