Re: [PATCH v4] iio: dac: mcp47feb02: Fix passing uninitialized vref1_uV for no Vref1 case

From: Jonathan Cameron

Date: Fri Jun 05 2026 - 09:08:37 EST


On Thu, 4 Jun 2026 18:28:01 +0200
David Lechner <dlechner@xxxxxxxxxxxx> wrote:

> On Thu, Jun 4, 2026 at 3:47 PM Ariana Lazar <ariana.lazar@xxxxxxxxxxxxx> wrote:
> >
> > 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@xxxxxxxxx>
> > Closes: https://lore.kernel.org/all/adiPnla0M5EzvgD-@stanley.mountain/
> >

Fixed this up. There must not be blank lines in tag blocks! If I miss
cleaning these up then Greg won't take the pull. So be very careful about this.

> > Signed-off-by: Ariana Lazar <ariana.lazar@xxxxxxxxxxxxx>
> > ---
>
> Reviewed-by: David Lechner <dlechner@xxxxxxxxxxxx>
Applied to the fixes-togreg branch of iio.git.
This is a little less minimal than ideal, but it is still readable so
I've taken it without asking for it to be split into minimal fix + refactor.

Jonathan