From: Joshua Crofts <crofts@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: "Jonathan Cameron" <jonathan.cameron@oss.qualcomm.com>,
linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org,
"Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Rupesh Majhi" <zoone.rupert@gmail.com>
Subject: Re: [PATCH v1 1/1] iio: core: Split debugfs routines
Date: Tue, 24 Nov 2026 11:55:49 +0100 [thread overview]
Message-ID: <508193e9-0157-4ff6-8276-760463ec5e60@kernel.org> (raw)
In-Reply-To: <awVsI5KfsvEruJYG@ashevche-desk.local>
On 24-Nov-26 11:51, Andy Shevchenko wrote:
> On Tue, Nov 24, 2026 at 12:46:22PM +0200, Andy Shevchenko wrote:
>> On Tue, Nov 24, 2026 at 11:17:01AM +0100, Joshua Crofts wrote:
>> > On 24-Nov-26 10:44, Andy Shevchenko wrote:
>
> ...
>
>> > > +#if defined(CONFIG_DEBUG_FS)
>> >
>> > Veeery small nit, but why not #ifdef CONFIG_DEBUG_FS? It's not
>> > as if you're checking for multiple defines.
>>
>> Or even IS_ENABLED()? Let me check if we have a precedent in IIO, I will use
>> then the same or most used style.
>
> FWIW, iio core uses exactly this form for DEBUG_FS test, so for the consistency
> I leave it as it, and if required we can fix this later.
>
> $ git grep -n '^#if.*DEBUG' -- drivers/iio/ include/linux/iio/
> drivers/iio/gyro/adis16136.c:66:#ifdef CONFIG_DEBUG_FS
> drivers/iio/humidity/dht11.c:87:#ifdef CONFIG_DYNAMIC_DEBUG
> drivers/iio/humidity/dht11.c:235:#ifdef CONFIG_DYNAMIC_DEBUG
> drivers/iio/iio_core.h:19:#if defined(CONFIG_DEBUG_FS)
> drivers/iio/imu/adis.c:227:#ifdef CONFIG_DEBUG_FS
> include/linux/iio/iio-opaque.h:73:#if defined(CONFIG_DEBUG_FS)
> include/linux/iio/iio.h:1010:#if defined(CONFIG_DEBUG_FS)
> include/linux/iio/imu/adis.h:573:#ifdef CONFIG_DEBUG_FS
Fair enough. It's just a style preference I guess, hence the very small nit.
--
Kind regards,
Joshua Crofts
next prev parent reply other threads:[~2026-11-24 10:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 9:44 Andy Shevchenko
2026-11-24 10:17 ` Joshua Crofts
2026-11-24 10:46 ` Andy Shevchenko
2026-11-24 10:51 ` Joshua Crofts
2026-11-24 11:04 ` Andy Shevchenko
2026-11-24 10:51 ` Andy Shevchenko
2026-11-24 10:55 ` Joshua Crofts [this message]
2026-11-24 11:07 ` Andy Shevchenko
2026-11-24 11:26 ` Nuno Sá
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=508193e9-0157-4ff6-8276-760463ec5e60@kernel.org \
--to=crofts@kernel.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=jonathan.cameron@oss.qualcomm.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=zoone.rupert@gmail.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®