[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aBpdDN12wdV/gOBB@JSANTO12-L01.ad.analog.com>
Date: Tue, 6 May 2025 16:03:40 -0300
From: Jonathan Santos <jonath4nns@...il.com>
To: Jonathan Cameron <jic23@...nel.org>
Cc: Jonathan Santos <Jonathan.Santos@...log.com>, linux-iio@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-gpio@...r.kernel.org, andy@...nel.org, nuno.sa@...log.com,
Michael.Hennerich@...log.com, marcelo.schmitt@...log.com,
robh@...nel.org, krzk+dt@...nel.org, conor+dt@...nel.org,
marcelo.schmitt1@...il.com, linus.walleij@...aro.org, brgl@...ev.pl,
lgirdwood@...il.com, broonie@...nel.org, dlechner@...libre.com,
Pop Paul <paul.pop@...log.com>
Subject: Re: [PATCH v6 10/11] iio: adc: ad7768-1: add filter type and
oversampling ratio attributes
On 05/05, Jonathan Cameron wrote:
> On Sun, 27 Apr 2025 21:14:17 -0300
> Jonathan Santos <Jonathan.Santos@...log.com> wrote:
>
...
> drivers/iio/adc/ad7768-1.c | 363 ++++++++++++++++++++++++++++++-------
> > 1 file changed, 293 insertions(+), 70 deletions(-)
> >
> > diff --git a/drivers/iio/adc/ad7768-1.c b/drivers/iio/adc/ad7768-1.c
> > index 10791a85d2c5..e2b8f12260a5 100644
> > --- a/drivers/iio/adc/ad7768-1.c
> > +++ b/drivers/iio/adc/ad7768-1.c
> > @@ -20,6 +20,8 @@
> > #include <linux/regulator/driver.h>
> > #include <linux/sysfs.h>
> > #include <linux/spi/spi.h>
> > +#include <linux/unaligned.h>
> > +#include <linux/util_macros.h>
> >
> > #include <linux/iio/buffer.h>
> > #include <linux/iio/iio.h>
> > @@ -77,7 +79,7 @@
> > #define AD7768_PWR_PWRMODE(x) FIELD_PREP(AD7768_PWR_PWRMODE_MSK, x)
> >
> > /* AD7768_REG_DIGITAL_FILTER */
> > -#define AD7768_DIG_FIL_FIL_MSK GENMASK(6, 4)
> > +#define AD7768_DIG_FIL_FIL_MSK GENMASK(7, 4)
>
> Bug? If so does this belong in a precursor patch?
>
Actually not, this extra bit is to include the 60Hz rejection enable
for sinc3 filter
> > #define AD7768_DIG_FIL_FIL(x) FIELD_PREP(AD7768_DIG_FIL_FIL_MSK, x)
>
...
Powered by blists - more mailing lists