]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad799x: cache regulator voltages during probe
authorArchit Anant <architanant5@gmail.com>
Sun, 12 Apr 2026 09:37:38 +0000 (15:07 +0530)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Apr 2026 08:58:21 +0000 (09:58 +0100)
commit97c3fae0dbc4bf62eac7a1798b723c258e85980d
tree1b5c586a782c20b3b276bdd43d68c97639f44fe1
parent21450969a7e86ee46dd6c546ae639057aa403b53
iio: adc: ad799x: cache regulator voltages during probe

Since the reference voltage for this ADC is not expected to
change at runtime, determine the active reference voltage (either VREF
or VCC) during probe() and cache it in a single variable in the state
structure.

Suggested-by: Jonathan Cameron <jic23@kernel.org>
Suggested-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Archit Anant <architanant5@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad799x.c