Message ID | 20201203100423.77270-5-alexandru.ardelean@analog.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | iio: move 'modes' initialization to core | expand |
diff --git a/drivers/iio/adc/ad7768-1.c b/drivers/iio/adc/ad7768-1.c index 5c0cbee03230..0b2fa526d03c 100644 --- a/drivers/iio/adc/ad7768-1.c +++ b/drivers/iio/adc/ad7768-1.c @@ -617,7 +617,6 @@ static int ad7768_probe(struct spi_device *spi) indio_dev->num_channels = ARRAY_SIZE(ad7768_channels); indio_dev->name = spi_get_device_id(spi)->name; indio_dev->info = &ad7768_info; - indio_dev->modes = INDIO_DIRECT_MODE | INDIO_BUFFER_TRIGGERED; ret = ad7768_setup(st); if (ret < 0) {
The INDIO_DIRECT_MODE mode bit will be set by iio_device_alloc() and iio_triggered_buffer_setup() will set the INDIO_BUFFER_TRIGGERED bit. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> --- drivers/iio/adc/ad7768-1.c | 1 - 1 file changed, 1 deletion(-)