[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aYuIftCDo5O0IF9F@smile.fi.intel.com>
Date: Tue, 10 Feb 2026 21:35:26 +0200
From: Andy Shevchenko <andriy.shevchenko@...el.com>
To: Antoniu Miclaus <antoniu.miclaus@...log.com>
Cc: Jonathan Cameron <jic23@...nel.org>,
David Lechner <dlechner@...libre.com>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iio: dac: max5522: use
devm_regulator_get_enable_read_voltage()
On Tue, Feb 10, 2026 at 07:51:27PM +0200, Antoniu Miclaus wrote:
> Simplify probe by using devm_regulator_get_enable_read_voltage() to
> get, enable and read the regulator voltage in a single call, caching
> the value at probe time.
...
> - struct regulator *vrefin_reg;
> + unsigned short vref_mv;
vref_mV ?
...
> + state->vref_mv = ret / 1000;
"1000" --> "(MICRO / MILLI)" ?
(yes, this way with the parentheses).
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists