summaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac
diff options
context:
space:
mode:
authorMarcelo Schmitt <marcelo.schmitt1@gmail.com>2023-08-03 21:56:23 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-09-11 21:12:59 +0200
commit9a85653ed3b9a9b7b31d95a34b64b990c3d33ca1 (patch)
treee97eb4cfb05808750bfc87f5ba27ee16a33610ad /drivers/iio/dac
parentLinux 6.6-rc1 (diff)
downloadlinux-9a85653ed3b9a9b7b31d95a34b64b990c3d33ca1.tar.xz
linux-9a85653ed3b9a9b7b31d95a34b64b990c3d33ca1.zip
iio: dac: ad3552r: Correct device IDs
Device IDs for AD3542R and AD3552R were swapped leading to unintended collection of DAC output ranges being used for each design. Change device ID values so they are correct for each DAC chip. Fixes: 8f2b54824b28 ("drivers:iio:dac: Add AD3552R driver support") Signed-off-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com> Reported-by: Chandrakant Minajigi <Chandrakant.Minajigi@analog.com> Link: https://lore.kernel.org/r/011f480220799fbfabdd53896f8a2f251ad995ad.1691091324.git.marcelo.schmitt1@gmail.com Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/dac')
-rw-r--r--drivers/iio/dac/ad3552r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/dac/ad3552r.c b/drivers/iio/dac/ad3552r.c
index d5ea1a1be122..a492e8f2fc0f 100644
--- a/drivers/iio/dac/ad3552r.c
+++ b/drivers/iio/dac/ad3552r.c
@@ -140,8 +140,8 @@ enum ad3552r_ch_vref_select {
};
enum ad3542r_id {
- AD3542R_ID = 0x4008,
- AD3552R_ID = 0x4009,
+ AD3542R_ID = 0x4009,
+ AD3552R_ID = 0x4008,
};
enum ad3552r_ch_output_range {