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 8f5ae30 commit 4e5b705Copy full SHA for 4e5b705
drivers/iio/accel/sca3300.c
@@ -477,7 +477,7 @@ static irqreturn_t sca3300_trigger_handler(int irq, void *p)
477
struct iio_dev *indio_dev = pf->indio_dev;
478
struct sca3300_data *data = iio_priv(indio_dev);
479
int bit, ret, val, i = 0;
480
- IIO_DECLARE_BUFFER_WITH_TS(s16, channels, SCA3300_SCAN_MAX);
+ IIO_DECLARE_BUFFER_WITH_TS(s16, channels, SCA3300_SCAN_MAX) = { };
481
482
iio_for_each_active_channel(indio_dev, bit) {
483
ret = sca3300_read_reg(data, indio_dev->channels[bit].address, &val);
0 commit comments