summaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac/ad5696-i2c.c
diff options
context:
space:
mode:
authorMichael Auchter <michael.auchter@ni.com>2020-09-24 14:52:12 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-10-10 16:41:09 +0100
commit7dc8faeab3e3b985bd61131ff9fb9067e91182e3 (patch)
treef8632d37ac4767cca404d186af551c717cf2dfde /drivers/iio/dac/ad5696-i2c.c
parent41f0666f0f60997dea10e716df728f330525052e (diff)
downloadlinux-stable-7dc8faeab3e3b985bd61131ff9fb9067e91182e3.tar.gz
linux-stable-7dc8faeab3e3b985bd61131ff9fb9067e91182e3.tar.bz2
linux-stable-7dc8faeab3e3b985bd61131ff9fb9067e91182e3.zip
iio: dac: ad5686: add support for AD5338R
The AD5338R is a 10-bit DAC with 2 outputs and an internal 2.5V reference (enabled by default). The register configuration is nearly identical to the AD5696R DAC that's already supported by this driver, with the channel selection bits being the only thing different. Signed-off-by: Michael Auchter <michael.auchter@ni.com> Link: https://lore.kernel.org/r/20200924195215.49443-1-michael.auchter@ni.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/dac/ad5696-i2c.c')
-rw-r--r--drivers/iio/dac/ad5696-i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/dac/ad5696-i2c.c b/drivers/iio/dac/ad5696-i2c.c
index ccf794caef43..89e7b063b7bb 100644
--- a/drivers/iio/dac/ad5696-i2c.c
+++ b/drivers/iio/dac/ad5696-i2c.c
@@ -72,6 +72,7 @@ static int ad5686_i2c_remove(struct i2c_client *i2c)
static const struct i2c_device_id ad5686_i2c_id[] = {
{"ad5311r", ID_AD5311R},
+ {"ad5338r", ID_AD5338R},
{"ad5671r", ID_AD5671R},
{"ad5675r", ID_AD5675R},
{"ad5691r", ID_AD5691R},