From: Jonathan Cameron <jic23@kernel.org>
To: David Lechner <dlechner@baylibre.com>
Cc: Marcelo Schmitt <marcelo.schmitt@analog.com>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
cosmin.tanislav@analog.com, lars@metafoo.de,
granquet@baylibre.com, u.kleine-koenig@baylibre.com,
marcelo.schmitt1@gmail.com
Subject: Re: [PATCH v2 3/3] Documentation: ABI: IIO: Drop AD4130 specific filter_type_available options
Date: Sun, 12 Jan 2025 11:56:38 +0000 [thread overview]
Message-ID: <20250112115638.1b163908@jic23-huawei> (raw)
In-Reply-To: <1684bc1a-c983-4baf-8b4d-0c6ff0f1640a@baylibre.com>
On Tue, 7 Jan 2025 11:53:44 -0600
David Lechner <dlechner@baylibre.com> wrote:
> On 1/7/25 9:13 AM, Marcelo Schmitt wrote:
> > The only driver exporting filter_type_available attribute is ad7779 and it
> > only supports sinc3 and sinc5 filters. Remove options that are not
> > presented through filter_type_available attribute.
> >
> > Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
> > ---
> > Maybe this is not worth it (or desirable?) since the options may come back in
> > the future if new drivers happen to need them.
>
> I would be tempted to add filter_type{,_available} attributes to the ad4130
> driver that mirrors the existing filter_mode{,_available} attributes. We can't
> remove filter_mode since that would break things, but having filter_type in
> addition to that would mean than userspace tools could standardize on
> filter_type and not have to make a special exception for the different naming
> on ad4130.
>
> Then we wouldn't need to delete the extra items here and we wouldn't have to
> repeat the docs for sysfs-bus-iio-adc-ad4130. Those docs can just have the
> deprecation paragraph and mention that it returns values identical to the
> filter_type attributes for backwards compatibility.
Good idea. Given we always allow any attribute to change any other, having
duplicates for ABI backwards compatibility is fine.
Thanks,
Jonathan
next prev parent reply other threads:[~2025-01-12 11:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-07 15:11 [PATCH v2 0/3] Re-add filter_type/filter_mode Marcelo Schmitt
2025-01-07 15:12 ` [PATCH v2 1/3] Documentation: ABI: IIO: Re-add sysfs-bus-iio-adc-ad4130 Marcelo Schmitt
2025-01-07 15:13 ` [PATCH v2 2/3] Documentation: ABI: IIO: Add filter_type documentation Marcelo Schmitt
2025-01-07 15:13 ` [PATCH v2 3/3] Documentation: ABI: IIO: Drop AD4130 specific filter_type_available options Marcelo Schmitt
2025-01-07 17:53 ` David Lechner
2025-01-12 11:56 ` Jonathan Cameron [this message]
2025-01-07 16:32 ` [PATCH v2 0/3] Re-add filter_type/filter_mode David Lechner
2025-01-07 17:44 ` Marcelo Schmitt
2025-01-07 17:48 ` 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=20250112115638.1b163908@jic23-huawei \
--to=jic23@kernel.org \
--cc=cosmin.tanislav@analog.com \
--cc=dlechner@baylibre.com \
--cc=granquet@baylibre.com \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.schmitt1@gmail.com \
--cc=marcelo.schmitt@analog.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®