]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4dacbe72387d901a5256cd1a9790958c50773ed
treea818ea5c6a4e52d741e8c543002ec67f097c7212
parent7df27af4124050a7a2cbd7b232336827c8f4c75b
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