Skip to content

Commit 785171f

Browse files
larsclausenjic23
authored andcommitted
iio:ad7793: Fix ad7785 product ID
While the datasheet for the AD7785 lists 0xXB as the product ID the actual product ID is 0xX3. Fix the product ID otherwise the driver will reject the device due to non matching IDs. Fixes: e786cc2 ("staging:iio:ad7793: Implement stricter id checking") Signed-off-by: Lars-Peter Clausen <[email protected]> Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 5dcbe97 commit 785171f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/adc/ad7793.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
#define AD7795_CH_AIN1M_AIN1M 8 /* AIN1(-) - AIN1(-) */
102102

103103
/* ID Register Bit Designations (AD7793_REG_ID) */
104-
#define AD7785_ID 0xB
104+
#define AD7785_ID 0x3
105105
#define AD7792_ID 0xA
106106
#define AD7793_ID 0xB
107107
#define AD7794_ID 0xF

0 commit comments

Comments
 (0)