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 ec71173 commit b21a7fdCopy full SHA for b21a7fd
drivers/iio/adc/ad7768-1.c
@@ -1415,6 +1415,15 @@ static int ad7768_probe(struct spi_device *spi)
1415
return -ENOMEM;
1416
1417
st = iio_priv(indio_dev);
1418
+ /*
1419
+ * The ADC SDI line must be kept high when
1420
+ * data is not being clocked out of the controller.
1421
+ * Request the SPI controller to make MOSI idle high.
1422
+ */
1423
+ spi->mode |= SPI_MOSI_IDLE_HIGH;
1424
+ ret = spi_setup(spi);
1425
+ if (ret < 0)
1426
+ return ret;
1427
st->spi = spi;
1428
1429
st->regulator = devm_regulator_get(&spi->dev, "vref");
0 commit comments