]> git.baikalelectronics.ru Git - kernel.git/commitdiff
iio: adc: ad7476: Add AD7091 support
authorDragos Bogdan <dragos.bogdan@analog.com>
Wed, 11 Mar 2020 08:43:27 +0000 (10:43 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2020 10:27:53 +0000 (10:27 +0000)
AD7091R is already supported by this driver. While AD7091R allows the
choice of an internal or an external voltage reference, for AD7091 the
reference is only provided by VDD. Since this information is anyway
obtained through the "vcc" regulator, no other driver changes are
required for adding AD7091 support as well.

Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>
Signed-off-by: Beniamin Bia <beniamin.bia@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7476.c

index 3b48073dd62d2c5dbf29a0c662dd8d2b77068473..cd7d42df2033443f579d7ae9cc2a74020ce0cfb2 100644 (file)
@@ -341,6 +341,7 @@ static int ad7476_remove(struct spi_device *spi)
 }
 
 static const struct spi_device_id ad7476_id[] = {
+       {"ad7091", ID_AD7091R},
        {"ad7091r", ID_AD7091R},
        {"ad7273", ID_AD7277},
        {"ad7274", ID_AD7276},