From: Jonathan Cameron <jic23@kernel.org>
To: David Lechner <dlechner@baylibre.com>
Cc: Antoniu Miclaus <antoniu.miclaus@analog.com>,
robh@kernel.org, conor+dt@kernel.org, linux-iio@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-pwm@vger.kernel.org
Subject: Re: [PATCH v8 3/8] iio: backend: add API for oversampling
Date: Sat, 14 Dec 2024 12:50:21 +0000 [thread overview]
Message-ID: <20241214125021.28acb1e2@jic23-huawei> (raw)
In-Reply-To: <ac529e7c-8655-4ef1-9bc8-9081d3c365c3@baylibre.com>
On Fri, 13 Dec 2024 17:10:58 -0600
David Lechner <dlechner@baylibre.com> wrote:
> On 12/13/24 10:44 AM, Antoniu Miclaus wrote:
> > Add backend support for setting oversampling ratio.
> >
> > Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
> > ---
> > changes in v8:
> > - pass oversampling ratio
> > drivers/iio/industrialio-backend.c | 15 +++++++++++++++
> > include/linux/iio/backend.h | 5 +++++
> > 2 files changed, 20 insertions(+)
> >
> > diff --git a/drivers/iio/industrialio-backend.c b/drivers/iio/industrialio-backend.c
> > index ea184fc2c838..e56b1e96652d 100644
> > --- a/drivers/iio/industrialio-backend.c
> > +++ b/drivers/iio/industrialio-backend.c
> > @@ -681,6 +681,21 @@ int iio_backend_data_size_set(struct iio_backend *back, unsigned int size)
> > }
> > EXPORT_SYMBOL_NS_GPL(iio_backend_data_size_set, IIO_BACKEND);
> >
> > +/**
> > + * iio_backend_oversampling_ratio_set - set the oversampling ratio
> > + * @back: Backend device
> > + * @ratio: The oversampling ratio
The 0 vs 1 as no oversampling debate has happened a few times. Perhaps just
add to documentation here to say 1 is used to mean no oversampling.
Thanks,
Jonathan
> > + *
> > + * Return:
> > + * 0 on success, negative error number on failure.
> > + */
> > +int iio_backend_oversampling_ratio_set(struct iio_backend *back,
> > + unsigned int ratio)
> > +{
> > + return iio_backend_op_call(back, oversampling_ratio_set, ratio);
> > +}
> > +EXPORT_SYMBOL_NS_GPL(iio_backend_oversampling_ratio_set, IIO_BACKEND);
> > +
> Needs quotes on "IIO_BACKEND" here.
>
> With that...
>
> Reviewed-by: David Lechner <dlechner@baylibre.com>
>
next prev parent reply other threads:[~2024-12-14 12:50 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-13 16:44 [PATCH v8 1/8] iio: backend: add API for interface get Antoniu Miclaus
2024-12-13 16:44 ` [PATCH v8 2/8] iio: backend: add support for data size set Antoniu Miclaus
2024-12-13 23:09 ` David Lechner
2024-12-13 16:44 ` [PATCH v8 3/8] iio: backend: add API for oversampling Antoniu Miclaus
2024-12-13 23:10 ` David Lechner
2024-12-14 12:50 ` Jonathan Cameron [this message]
2024-12-13 16:44 ` [PATCH v8 4/8] iio: adc: adi-axi-adc: add interface type Antoniu Miclaus
2024-12-13 16:44 ` [PATCH v8 5/8] iio: adc: adi-axi-adc: set data format Antoniu Miclaus
2024-12-14 12:48 ` Jonathan Cameron
2024-12-13 16:44 ` [PATCH v8 6/8] iio: adc: adi-axi-adc: add oversampling Antoniu Miclaus
2024-12-13 16:44 ` [PATCH v8 7/8] dt-bindings: iio: adc: add ad4851 Antoniu Miclaus
2024-12-13 23:07 ` David Lechner
2024-12-13 16:44 ` [PATCH v8 8/8] iio: adc: ad4851: add ad485x driver Antoniu Miclaus
2024-12-13 23:43 ` David Lechner
2024-12-14 13:43 ` Jonathan Cameron
2024-12-13 23:07 ` [PATCH v8 1/8] iio: backend: add API for interface get David Lechner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241214125021.28acb1e2@jic23-huawei \
--to=jic23@kernel.org \
--cc=antoniu.miclaus@analog.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox