OSDN Git Service

iio: adc: ad7923: support extended range
authorNuno Sá <nuno.sa@analog.com>
Mon, 12 Sep 2022 08:12:22 +0000 (10:12 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 21 Sep 2022 17:42:55 +0000 (18:42 +0100)
commit096d2dac25f9947d1cb1e16a16468de8fda685e6
treea818ea5c6a4e52d741e8c543002ec67f097c7212
parentf4f43f01cff2f29779343ade755191afd2581c77
iio: adc: ad7923: support extended range

By default the driver was always setting the RANGE bit which means that
the analog input goes from 0 to VREF. However, we might want to have 0
to 2xVREF. This change adds a new Firmware property to allow for the
extended range while keeping the default behavior if nothing is provided.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20220912081223.173584-3-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7923.c