diff options
| author | 2024-07-02 17:34:10 +0000 | |
|---|---|---|
| committer | 2024-07-29 20:31:12 +0100 | |
| commit | 8dc4594b54dbaaba40dc8884ad3d42083de39434 (patch) | |
| tree | 1fb62d3dc0255b3b8554439eef530e87a6a8694c /scripts/Makefile.thinlto | |
| parent | dt-bindings: iio: adc: adi,ad7606: add conditions (diff) | |
iio: adc: ad7606: fix oversampling gpio array
gpiod_set_array_value was misused here: the implementation relied on the
assumption that an unsigned long was required for each gpio, while the
function expects a bit array stored in "as much unsigned long as needed
for storing one bit per GPIO", i.e it is using a bit field.
This leaded to incorrect parameter passed to gpiod_set_array_value, that
would set 1 value instead of 3.
It also prevents to select the software mode correctly for the AD7606B.
Fixes: d2a415c86c6b ("iio: adc: ad7606: Add support for AD7606B ADC")
Fixes: 41f71e5e7daf ("staging: iio: adc: ad7606: Use find_closest() macro")
Signed-off-by: Guillaume Stols <gstols@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
