mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marcelo Schmitt <marcelo.schmitt@analog.com>
To: <linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <cosmin.tanislav@analog.com>, <jic23@kernel.org>,
	<lars@metafoo.de>, <marcelo.schmitt@analog.com>,
	<dlechner@baylibre.com>, <granquet@baylibre.com>,
	<u.kleine-koenig@baylibre.com>, <marcelo.schmitt1@gmail.com>
Subject: [PATCH v3 2/3] iio: adc: ad4130: Add filter_type attributes
Date: Mon, 3 Feb 2025 16:11:27 -0300	[thread overview]
Message-ID: <77e5eb540e5d425016ea77a641e16cd31a2a761a.1738608986.git.marcelo.schmitt@analog.com> (raw)
In-Reply-To: <cover.1738608986.git.marcelo.schmitt@analog.com>

Make filter control also available through filter_type attributes which are
now standardized in main IIO ABI documentation.

Suggested-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
---
Hi David, I forgot to ask if you wanted it, but I've added a suggested-by tag
for your advice on v2.

Thanks,
Marcelo

 drivers/iio/adc/ad4130.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/iio/adc/ad4130.c b/drivers/iio/adc/ad4130.c
index de32cc9d18c5..66097ff65740 100644
--- a/drivers/iio/adc/ad4130.c
+++ b/drivers/iio/adc/ad4130.c
@@ -942,6 +942,9 @@ static const struct iio_chan_spec_ext_info ad4130_filter_mode_ext_info[] = {
 	IIO_ENUM("filter_mode", IIO_SEPARATE, &ad4130_filter_mode_enum),
 	IIO_ENUM_AVAILABLE("filter_mode", IIO_SHARED_BY_TYPE,
 			   &ad4130_filter_mode_enum),
+	IIO_ENUM("filter_type", IIO_SEPARATE, &ad4130_filter_mode_enum),
+	IIO_ENUM_AVAILABLE("filter_type", IIO_SHARED_BY_TYPE,
+			   &ad4130_filter_mode_enum),
 	{ }
 };
 
-- 
2.47.2


  parent reply	other threads:[~2025-02-03 19:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-03 19:10 [PATCH v3 0/3] Re-add filter_type/filter_mode Marcelo Schmitt
2025-02-03 19:11 ` [PATCH v3 1/3] Documentation: ABI: IIO: Add filter_type documentation Marcelo Schmitt
2025-02-03 19:39   ` David Lechner
2025-02-03 19:11 ` Marcelo Schmitt [this message]
2025-02-03 19:40   ` [PATCH v3 2/3] iio: adc: ad4130: Add filter_type attributes David Lechner
2025-02-04 12:54     ` Marcelo Schmitt
2025-02-03 19:11 ` [PATCH v3 3/3] Documentation: ABI: IIO: Re-add sysfs-bus-iio-adc-ad4130 Marcelo Schmitt
2025-02-03 19:41   ` David Lechner
2025-02-04 12:53     ` Marcelo Schmitt
2025-02-04 13:00     ` Marcelo Schmitt

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=77e5eb540e5d425016ea77a641e16cd31a2a761a.1738608986.git.marcelo.schmitt@analog.com \
    --to=marcelo.schmitt@analog.com \
    --cc=cosmin.tanislav@analog.com \
    --cc=dlechner@baylibre.com \
    --cc=granquet@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo.schmitt1@gmail.com \
    --cc=u.kleine-koenig@baylibre.com \
    /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

all inboxes | Powered by JetHome®