[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a6488485909d40b3810ad15787cd2100@analog.com>
Date: Wed, 14 Jun 2023 10:43:00 +0000
From: "Paller, Kim Seer" <KimSeer.Paller@...log.com>
To: Andy Shevchenko <andy.shevchenko@...il.com>
CC: "jic23@...nel.org" <jic23@...nel.org>,
"lars@...afoo.de" <lars@...afoo.de>,
"lgirdwood@...il.com" <lgirdwood@...il.com>,
"broonie@...nel.org" <broonie@...nel.org>,
"Hennerich, Michael" <Michael.Hennerich@...log.com>,
"robh@...nel.org" <robh@...nel.org>,
"krzysztof.kozlowski@...aro.org" <krzysztof.kozlowski@...aro.org>,
"conor+dt@...nel.org" <conor+dt@...nel.org>,
"linux-iio@...r.kernel.org" <linux-iio@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>
Subject: RE: [PATCH v6 2/2] iio: adc: max14001: New driver
> -----Original Message-----
> From: Andy Shevchenko <andy.shevchenko@...il.com>
> Sent: Wednesday, June 14, 2023 5:12 PM
> To: Paller, Kim Seer <KimSeer.Paller@...log.com>
> Cc: jic23@...nel.org; lars@...afoo.de; lgirdwood@...il.com;
> broonie@...nel.org; Hennerich, Michael <Michael.Hennerich@...log.com>;
> robh@...nel.org; krzysztof.kozlowski@...aro.org; conor+dt@...nel.org; linux-
> iio@...r.kernel.org; linux-kernel@...r.kernel.org; devicetree@...r.kernel.org
> Subject: Re: [PATCH v6 2/2] iio: adc: max14001: New driver
>
> [External]
>
> On Wed, Jun 14, 2023 at 3:49 AM Kim Seer Paller
> <kimseer.paller@...log.com> wrote:
> >
> > The MAX14001 is configurable, isolated 10-bit ADCs for multi-range
> > binary inputs.
>
> Reviewed-by: Andy Shevchenko <andy.shevchenko@...il.com> One question
> below.
>
> > Signed-off-by: Kim Seer Paller <kimseer.paller@...log.com>
> > ---
...
> > + /* select external voltage reference source for the ADC */
> > + ret = max14001_reg_update(st, MAX14001_CFG,
> > + MAX14001_CFG_EXRF, 1);
> > +
> > + ret = regulator_get_voltage(vref);
> > + if (ret < 0)
> > + return dev_err_probe(dev, ret,
> > + "Failed to get vref\n");
>
> Is it important to choose the external reference source _before_ getting the
> voltage of the regulator? If not, I would swap these calls, otherwise the
> comment is needed to explain why the sequence is important in the way it's
> written.
It is not important. These calls can be swap without any issues.
Best regards,
Kim Seer Paller
Powered by blists - more mailing lists