Skip to content

Commit 9a85653

Browse files
marceloschmitt1jic23
authored andcommitted
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: 8f2b548 ("drivers:iio:dac: Add AD3552R driver support") Signed-off-by: Marcelo Schmitt <[email protected]> Reported-by: Chandrakant Minajigi <[email protected]> Link: https://lore.kernel.org/r/011f480220799fbfabdd53896f8a2f251ad995ad.1691091324.git.marcelo.schmitt1@gmail.com Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 0bb80ec commit 9a85653

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/iio/dac/ad3552r.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ enum ad3552r_ch_vref_select {
140140
};
141141

142142
enum ad3542r_id {
143-
AD3542R_ID = 0x4008,
144-
AD3552R_ID = 0x4009,
143+
AD3542R_ID = 0x4009,
144+
AD3552R_ID = 0x4008,
145145
};
146146

147147
enum ad3552r_ch_output_range {

0 commit comments

Comments
 (0)