From: David Lechner <dlechner@baylibre.com>
To: Antoniu Miclaus <antoniu.miclaus@analog.com>,
jic23@kernel.org, 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: Fri, 13 Dec 2024 17:10:58 -0600 [thread overview]
Message-ID: <ac529e7c-8655-4ef1-9bc8-9081d3c365c3@baylibre.com> (raw)
In-Reply-To: <20241213164445.23195-3-antoniu.miclaus@analog.com>
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
> + *
> + * 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-13 23:11 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 [this message]
2024-12-14 12:50 ` Jonathan Cameron
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=ac529e7c-8655-4ef1-9bc8-9081d3c365c3@baylibre.com \
--to=dlechner@baylibre.com \
--cc=antoniu.miclaus@analog.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--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