You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ad7768_scale() is dependent on the st->vref voltage. Hence, simplify the
code and get the voltage only during probe (as it should not change at
runtime) with devm_regulator_get_enable_read_voltage()
Fixes: 92cc452 ("iio: adc: ad7768: simplify probe")
Co-developed-by: Dragos Bogdan <dragos.bogdan@analog.com>
Signed-off-by: Dragos Bogdan <dragos.bogdan@analog.com>
Signed-off-by: Nuno Sa <nuno.sa@analog.com>
0 commit comments