From: Jonathan Cameron <jic23@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: Tomas Melin <tomas.melin@vaisala.com>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
Lars-Peter Clausen <lars@metafoo.de>,
Michael Hennerich <Michael.Hennerich@analog.com>,
Nuno Sa <nuno.sa@analog.com>,
David Lechner <dlechner@baylibre.com>,
Andy Shevchenko <andy@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 2/3] iio: adc: ad9467: sort header includes
Date: Sat, 13 Dec 2025 16:34:56 +0000 [thread overview]
Message-ID: <20251213163456.2ba481b6@jic23-huawei> (raw)
In-Reply-To: <aThnybDs4lk9ht_f@smile.fi.intel.com>
On Tue, 9 Dec 2025 20:17:45 +0200
Andy Shevchenko <andriy.shevchenko@intel.com> wrote:
> On Tue, Dec 09, 2025 at 05:46:16PM +0200, Tomas Melin wrote:
> > On 09/12/2025 16:41, Andy Shevchenko wrote:
> > > On Tue, Dec 9, 2025 at 7:34 AM Tomas Melin <tomas.melin@vaisala.com> wrote:
> > >>
> > >> Include headers in ascending order.
> > >
> > > Thanks, but...
> > >
> > >> #include <linux/iio/backend.h>
> > >> #include <linux/iio/iio.h>
> > >> #include <linux/iio/sysfs.h>
> > >
> > > ...this was specifically grouped to show the relation to the certain
> > > subsystem. At the end we should have something like this
> > >
> > > linux/*.h // generic ones
> > > ...blank line...
> > > asm/*.h // generic ones (optionally, if there is a need in a such)
> > > ...blank line...
> > > linux/iio/*.h
> > > ...blank line...
> >
> > Thanks for the clarification. Sure, it's not a big deal to do a new
> > version. But FWIW, that convention is not AFAIS explicitly stated
> > anywhere and with even recent drivers not all following it, it's
> > somewhat hard to know what expected formatting should be.
> > It would really be good to have that documented somewhere.
>
> I fully agree. The problem with such a documentation is that you will always
> have 50/50% split at best. At worse ~100% will be against any doc updates
> like this. For minimum we can do it on an IIO level (only for this subsystem),
> see how others do Documentation/process/maintainer-*.rst. There is no IIO.
> You can start it :-)
>
That maintainer doc is my xmas holiday todo list. Then again it was
on there last year and I think the year before :(
It's possibly something where we need a rolling draft for a bit out
of tree so that by the time it actually merges it doesn't imply things
simply because we forgot certain aspects.
Jonathan
next prev parent reply other threads:[~2025-12-13 16:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-09 5:32 [PATCH v4 0/3] iio: adc: ad9467: add support for ad9211 Tomas Melin
2025-12-09 5:32 ` [PATCH v4 1/3] dt-bindings: " Tomas Melin
2025-12-09 5:32 ` [PATCH v4 2/3] iio: adc: ad9467: sort header includes Tomas Melin
2025-12-09 14:41 ` Andy Shevchenko
2025-12-09 15:46 ` Tomas Melin
2025-12-09 18:17 ` Andy Shevchenko
2025-12-13 16:34 ` Jonathan Cameron [this message]
2025-12-09 5:32 ` [PATCH v4 3/3] iio: adc: ad9467: add support for ad9211 Tomas Melin
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=20251213163456.2ba481b6@jic23-huawei \
--to=jic23@kernel.org \
--cc=Michael.Hennerich@analog.com \
--cc=andriy.shevchenko@intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
--cc=tomas.melin@vaisala.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