[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <lwqhf3pm5xewtx4hhq7ei2yil4skmtkstqfifif74u4e5jmtzh@wedhpibvjepw>
Date: Tue, 13 Jan 2026 09:32:16 +0000
From: Rodrigo Alencar <455.rodrigo.alencar@...il.com>
To: Andy Shevchenko <andriy.shevchenko@...el.com>,
Rodrigo Alencar <455.rodrigo.alencar@...il.com>
Cc: rodrigo.alencar@...log.com, linux-kernel@...r.kernel.org,
linux-iio@...r.kernel.org, devicetree@...r.kernel.org, linux-doc@...r.kernel.org,
Jonathan Cameron <jic23@...nel.org>, David Lechner <dlechner@...libre.com>,
Andy Shevchenko <andy@...nel.org>, Lars-Peter Clausen <lars@...afoo.de>,
Michael Hennerich <Michael.Hennerich@...log.com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Jonathan Corbet <corbet@....net>
Subject: Re: [PATCH v3 2/6] iio: frequency: adf41513: driver implementation
On 26/01/12 12:57PM, Andy Shevchenko wrote:
> On Mon, Jan 12, 2026 at 09:56:25AM +0000, Rodrigo Alencar wrote:
> > On 26/01/09 08:55PM, Andy Shevchenko wrote:
> > > On Thu, Jan 08, 2026 at 12:14:51PM +0000, Rodrigo Alencar via B4 Relay wrote:
>
...
> > > > +#define ADF41513_MIN_INT_4_5 20
> > > > +#define ADF41513_MAX_INT_4_5 511
> > > > +#define ADF41513_MIN_INT_8_9 64
> > > > +#define ADF41513_MAX_INT_8_9 1023
> > >
> > > Not sure if we want (BIT(x) - 1) for the limits as we have non-0 minimums.
>
> Any comment on this?
>
limits for INT are taken from the datasheet as is, so I think it makes to leave them
like this.
...
> > > > +#define ADF41513_MAX_PHASE_MICRORAD 6283185UL
> > >
> > > Basically I'm replying to this just for this line. 180° is PI radians, which is
> > > something like 31415926... Can we use here (2 * 314...) where PI is provided in
> > > one of the used form? This will help to grep and replace in case we will have a
> > > common PI constant defined in the kernel (units.h).
>
> Any comment on this?
>
will adjust as suggested.
kind regards,
Rodrigo Alencar
Powered by blists - more mailing lists