]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ad7380: move internal reference voltage to chip_info
authorDavid Lechner <dlechner@baylibre.com>
Tue, 1 Apr 2025 22:50:10 +0000 (17:50 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Apr 2025 18:10:01 +0000 (19:10 +0100)
commitd63a749bf75a8e44add76cbeb470ddac22b45352
tree423e940faa75ff15d473064d496b852e049e05cf
parentabb97cc0ff56b103fb74239ea08a601dd1633746
iio: adc: ad7380: move internal reference voltage to chip_info

Move the internal reference voltage value to the chip_info structure.

Before this change, only ADAQ chips could be internal_ref_only and only
non-ADAQ chips could be external_ref_only. Now, this restriction is
removed.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250401-iio-ad7380-add-ad7389-4-v1-3-23d2568aa24f@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7380.c