We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd3c66c commit ce2d16bCopy full SHA for ce2d16b
drivers/sensor/adi/adxl345/adxl345.c
@@ -594,8 +594,8 @@ static int adxl345_init(const struct device *dev)
594
#define ADXL345_DEFINE(inst) \
595
IF_ENABLED(CONFIG_ADXL345_STREAM, (ADXL345_RTIO_DEFINE(inst))); \
596
static struct adxl345_dev_data adxl345_data_##inst = { \
597
- COND_CODE_1(adxl345_iodev_##inst, (.rtio_ctx = &adxl345_rtio_ctx_##inst, \
598
- .iodev = &adxl345_iodev_##inst,), ()) \
+ IF_ENABLED(CONFIG_ADXL345_STREAM, (.rtio_ctx = &adxl345_rtio_ctx_##inst, \
+ .iodev = &adxl345_iodev_##inst,)) \
599
}; \
600
static const struct adxl345_dev_config adxl345_config_##inst = \
601
COND_CODE_1(DT_INST_ON_BUS(inst, spi), (ADXL345_CONFIG_SPI(inst)), \
0 commit comments