From: Waqar Hameed <waqar.hameed@axis.com>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: Rajveer Chaudhari <rajveer.chaudhari.linux@gmail.com>,
<jic23@kernel.org>, <dlechner@baylibre.com>, <nuno.sa@analog.com>,
<andy@kernel.org>, <linusw@kernel.org>,
<sakari.ailus@linux.intel.com>,
<harshit.m.mogalapalli@oracle.com>, <antoniu.miclaus@analog.com>,
<andrew.ijano@gmail.com>, <linux-iio@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/4] iio: accel: bmc150: convert to guard(mutex)
Date: Mon, 9 Mar 2026 17:48:49 +0100 [thread overview]
Message-ID: <pnd342954pa.a.out@axis.com> (raw)
In-Reply-To: <aa70ngEIxDNPYqky@ashevche-desk.local> (Andy Shevchenko's message of "Mon, 9 Mar 2026 18:26:06 +0200")
On Mon, Mar 09, 2026 at 18:26 +0200 Andy Shevchenko <andriy.shevchenko@intel.com> wrote:
> On Mon, Mar 09, 2026 at 03:35:58PM +0100, Waqar Hameed wrote:
[...]
>> Why? Think about traceability (bisect etc.).
>
> It's all about maintenance and development. Easy to see where need to put
> a new header if it's not present (also easier to find this at a glance).
Totally agree (see below).
>
>> This comment applies to all other patches in the series as well. I'll
>> just state it here and wait for V2 before taking a deeper look.
>
>> To be honest, I'm not even sure if sorting the headers is a "valid"
>> patch. It's just cosmetics (and there seems to be no such code style
>> guidelines)...
>
> It's valid when in a series (not as just for the sake of sorting). Here
> it would make sense to have it as a precursor to find the best place for
> a new header inclusion to place.
>
> Guidelines here are still missing maintainer preferences for IIO subsystem.
Yeah, I guess that's kind of the issue here (or in general for kernel
developing). Every sub-system have their preference. You just have to
carefully navigate through all of this :)
Moreover, I always tend to sort the include header when creating a _new_
file (for the reason you stated above). `clang-format` does that
automatically for me, though you have to modify the
`.clang-format`-file:
diff --git a/.clang-format b/.clang-format
index 1cc151e2adcc5..f6631d03bd3f3 100644
--- a/.clang-format
+++ b/.clang-format
@@ -784,7 +784,7 @@ PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
ReflowComments: false
-SortIncludes: false
+SortIncludes: true
SortUsingDeclarations: false
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
The reason for the `false` value can be read in the last section "Extra
features/option" in `Documentation/dev-tools/clang-format.rst`.
next prev parent reply other threads:[~2026-03-09 16:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-09 14:23 [PATCH 0/4] iio: accel: convert to guard(mutex) Rajveer Chaudhari
2026-03-09 14:23 ` [PATCH 1/4] iio: accel: bmc150: " Rajveer Chaudhari
2026-03-09 14:34 ` Rajveer Chaudhari
2026-03-09 14:35 ` Waqar Hameed
2026-03-09 16:26 ` Andy Shevchenko
2026-03-09 16:48 ` Waqar Hameed [this message]
2026-03-09 17:25 ` Rajveer Chaudhari
2026-03-09 14:23 ` [PATCH 2/4] iio: accel: mma8452: " Rajveer Chaudhari
2026-03-09 14:23 ` [PATCH 3/4] iio: accel: mma9551: " Rajveer Chaudhari
2026-03-09 14:23 ` [PATCH 4/4] iio: accel: sca3000: " Rajveer Chaudhari
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=pnd342954pa.a.out@axis.com \
--to=waqar.hameed@axis.com \
--cc=andrew.ijano@gmail.com \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=antoniu.miclaus@analog.com \
--cc=dlechner@baylibre.com \
--cc=harshit.m.mogalapalli@oracle.com \
--cc=jic23@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=rajveer.chaudhari.linux@gmail.com \
--cc=sakari.ailus@linux.intel.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