]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iio: dac: ad5686: add AD5695R to ad5686_chip_info_tbl
authorKübrich, Andreas <andreas.kuebrich@spektra-dresden.de>
Mon, 17 Nov 2025 12:35:13 +0000 (12:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Jan 2026 09:27:38 +0000 (10:27 +0100)
commit 441ac29923c9172bc5e4b2c4f52ae756192f5715 upstream.

The chip info for this variant (I2C, four channels, 14 bit, internal
reference) seems to have been left out due to oversight, so
ad5686_chip_info_tbl[ID_AD5695R] is all zeroes. Initialisation of an
AD5695R still succeeds, but the resulting IIO device has no channels and no
/dev/iio:device* node.

Add the missing chip info to the table.

Fixes: 4177381b4401 ("iio:dac:ad5686: Add AD5671R/75R/94/94R/95R/96/96R support")
Signed-off-by: Andreas Kübrich <andreas.kuebrich@spektra-dresden.de>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/dac/ad5686.c

index 57cc0f0eedc6c6b09a6949bfa2da36a94269eaa7..4c9f7ade52b32de2476ebdfbd3dce4d1b9cbc577 100644 (file)
@@ -434,6 +434,12 @@ static const struct ad5686_chip_info ad5686_chip_info_tbl[] = {
                .num_channels = 4,
                .regmap_type = AD5686_REGMAP,
        },
+       [ID_AD5695R] = {
+               .channels = ad5685r_channels,
+               .int_vref_mv = 2500,
+               .num_channels = 4,
+               .regmap_type = AD5686_REGMAP,
+       },
        [ID_AD5696] = {
                .channels = ad5686_channels,
                .num_channels = 4,