diff options
| author | Ariana Lazar <ariana.lazar@microchip.com> | 2026-06-04 16:46:47 +0300 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-06-29 23:24:45 +0100 |
| commit | e74c0d0eef7e1fa9fd387b81b2787b4581e0b11c (patch) | |
| tree | dda5db2c4547f89c4ed91cfbfde8e9b6c2ff8e90 /lib/raid/raid6/git@git.tavy.me:linux-stable.git | |
| parent | adf4bc07f814da8329278d32600147f5a150938c (diff) | |
iio: dac: mcp47feb02: Fix passing uninitialized vref1_uV for no Vref1 case
Ensure that if a device has Vref1 but reading the regulator returns an
error, mcp47feb02_init_ctrl_regs() is not called with an uninitialized
vref1_uV value. Also add a device_property_present() check for the Vref1
supply before reading the regulator.
Fixes: dd154646d292 ("iio: dac: mcp47feb02: Fix Vref validation [1-999] case")
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/all/adiPnla0M5EzvgD-@stanley.mountain/
Signed-off-by: Ariana Lazar <ariana.lazar@microchip.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'lib/raid/raid6/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
