diff options
| author | Antoniu Miclaus <antoniu.miclaus@analog.com> | 2025-10-07 11:15:20 +0000 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-10-19 11:59:21 +0100 |
| commit | b66cddc8be7278fd14650ff9182f3794397f8b31 (patch) | |
| tree | e5edef91f67622b2366fdb26cc08ea7abfcd3fea /tools/lib/python/kdoc | |
| parent | b73e812a82508b8ba81b7ac9f64a75ddd0be74c7 (diff) | |
| download | linux-b66cddc8be7278fd14650ff9182f3794397f8b31.tar.gz linux-b66cddc8be7278fd14650ff9182f3794397f8b31.zip | |
iio: adc: ad4080: fix chip identification
Fix AD4080 chip identification by using the correct 16-bit product ID
(0x0050) instead of GENMASK(2, 0). Update the chip reading logic to
use regmap_bulk_read to read both PRODUCT_ID_L and PRODUCT_ID_H
registers and combine them into a 16-bit value.
The original implementation was incorrectly reading only 3 bits,
which would not correctly identify the AD4080 chip.
Fixes: 6b31ba1811b6 ("iio: adc: ad4080: add driver support")
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
