]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: dac: ad5446: Drop duplicated spi_id entry
authorNuno Sá <nuno.sa@analog.com>
Tue, 4 Nov 2025 15:35:08 +0000 (15:35 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Nov 2025 16:03:45 +0000 (16:03 +0000)
AD5600 and AD5541A are compatible so there's no need to have a dedicated
entry for ID_AD5600.

Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5446.c

index ce19e20dd38eb12cb15b5f254d3f9602bd8a8577..4e4e080833d9169afb0cbcb0b817703bacc9cdba 100644 (file)
@@ -303,7 +303,6 @@ enum ad5446_supported_spi_device_ids {
        ID_AD5541A,
        ID_AD5512A,
        ID_AD5553,
-       ID_AD5600,
        ID_AD5601,
        ID_AD5611,
        ID_AD5621,
@@ -358,10 +357,6 @@ static const struct ad5446_chip_info ad5446_spi_chip_info[] = {
                .channel = AD5446_CHANNEL(14, 16, 0),
                .write = ad5446_write,
        },
-       [ID_AD5600] = {
-               .channel = AD5446_CHANNEL(16, 16, 0),
-               .write = ad5446_write,
-       },
        [ID_AD5601] = {
                .channel = AD5446_CHANNEL_POWERDOWN(8, 16, 6),
                .write = ad5446_write,
@@ -429,7 +424,7 @@ static const struct spi_device_id ad5446_spi_ids[] = {
        {"ad5542a", ID_AD5541A}, /* ad5541a and ad5542a are compatible */
        {"ad5543", ID_AD5541A}, /* ad5541a and ad5543 are compatible */
        {"ad5553", ID_AD5553},
-       {"ad5600", ID_AD5600},
+       {"ad5600", ID_AD5541A}, /* ad5541a and ad5600 are compatible  */
        {"ad5601", ID_AD5601},
        {"ad5611", ID_AD5611},
        {"ad5621", ID_AD5621},