summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/ad7476.c
diff options
context:
space:
mode:
authorDragos Bogdan <dragos.bogdan@analog.com>2020-03-11 11:43:27 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-03-21 13:27:53 +0300
commit0267a3166644037f0de66b496165a5801a99a5ae (patch)
tree1cf21bdf4327cb206286d01aba017d216d5474d2 /drivers/iio/adc/ad7476.c
parent3a6af93dd66eba90cee3eb778b83bdccb2202d4f (diff)
downloadlinux-0267a3166644037f0de66b496165a5801a99a5ae.tar.xz
iio: adc: ad7476: Add AD7091 support
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>
Diffstat (limited to 'drivers/iio/adc/ad7476.c')
-rw-r--r--drivers/iio/adc/ad7476.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/ad7476.c b/drivers/iio/adc/ad7476.c
index 3b48073dd62d..cd7d42df2033 100644
--- a/drivers/iio/adc/ad7476.c
+++ b/drivers/iio/adc/ad7476.c
@@ -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},