[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aYuJOXmxZVtiBHsE@smile.fi.intel.com>
Date: Tue, 10 Feb 2026 21:38:33 +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: magnetometer: si7210: use
devm_regulator_get_enable_read_voltage()
On Tue, Feb 10, 2026 at 07:51:28PM +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.
...
> + unsigned int vdd_uv;
vdd_uV // now wondering if we can even use unicode variable name µV :-)
...
> + temp -= 222 * div_s64(data->vdd_uv, MILLI);
Not sure why this is 64-bit division now.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists