Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: e786cc26dcc5 ("staging:iio:ad7793: Implement stricter id checking")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Lars-Peter Clausen and committed by
Jonathan Cameron
785171fd 5dcbe97b

+1 -1
+1 -1
drivers/iio/adc/ad7793.c
··· 101 101 #define AD7795_CH_AIN1M_AIN1M 8 /* AIN1(-) - AIN1(-) */ 102 102 103 103 /* ID Register Bit Designations (AD7793_REG_ID) */ 104 - #define AD7785_ID 0xB 104 + #define AD7785_ID 0x3 105 105 #define AD7792_ID 0xA 106 106 #define AD7793_ID 0xB 107 107 #define AD7794_ID 0xF