From: Jonathan Cameron <jic23@kernel.org>
To: linux-iio@vger.kernel.org, "Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"David Lechner" <dlechner@baylibre.com>
Cc: Denis Ciocca <denis.ciocca@st.com>,
Vasileios Amoiridis <vassilisamir@gmail.com>,
Jonathan Cameron <Jonathan.Cameron@huawei.com>
Subject: [PATCH 0/7] IIO: More application of IWYU principles to includes.
Date: Thu, 10 Jul 2025 18:11:00 +0100 [thread overview]
Message-ID: <20250710171107.443790-1-jic23@kernel.org> (raw)
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
I decided to look at a slightly larger set to continue trying to come
up with consistent rules (for IIO anyway) on what we want to include
direclty and what assumptions we can make about a header always including
another.
As the series goes on reduce the amount of info on particular choices made
just because the commit descriptions were getting very long.
A few open questions.
- linux/stddef.h - do we want to included this directly?
- linux/types.h - do we want to include this directly?
- linux/dev_printk.h - include even if device.h is needed for other reasons
or rely on that as a grouping header if present and only use dev_printk
where we don't need device.h.
I'll share a refreshed IWYU config once we come to firmer conclusions
on the various choices. I haven't yet figured out now to not include
anything at all for things like CONFIG*
Jonathan Cameron (7):
iio: pressure: bmp280: Apply iwyu principles to includes.
iio: pressure: zpa2326: Apply iwyu principles to includes
iio: pressure: mpl115: Apply iwyu principles to includes
iio: pressure: ms5611: Apply iwyu principles to includes
iio: pressure: hsc030pa: Apply IWYU principles to includes.
iio: pressure: mprls0025pa: Apply IWYU principles to includes.
iio: st_sensors: Apply IWYU principles to includes
drivers/iio/accel/st_accel_buffer.c | 6 ++++--
drivers/iio/accel/st_accel_core.c | 12 ++++++++---
drivers/iio/accel/st_accel_i2c.c | 5 ++++-
drivers/iio/accel/st_accel_spi.c | 3 ++-
.../iio/common/st_sensors/st_sensors_buffer.c | 15 +++++++++-----
.../iio/common/st_sensors/st_sensors_core.c | 19 ++++++++++++++----
.../iio/common/st_sensors/st_sensors_core.h | 2 ++
.../iio/common/st_sensors/st_sensors_i2c.c | 8 ++++++--
.../iio/common/st_sensors/st_sensors_spi.c | 11 ++++++++--
.../common/st_sensors/st_sensors_trigger.c | 13 +++++++++---
drivers/iio/gyro/st_gyro_buffer.c | 6 ++++--
drivers/iio/gyro/st_gyro_core.c | 11 +++++++---
drivers/iio/gyro/st_gyro_i2c.c | 3 ++-
drivers/iio/gyro/st_gyro_spi.c | 3 ++-
drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_core.c | 5 ++++-
drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c | 5 ++---
drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_spi.c | 5 ++---
drivers/iio/magnetometer/st_magn_buffer.c | 5 +++--
drivers/iio/magnetometer/st_magn_core.c | 11 +++++++---
drivers/iio/magnetometer/st_magn_i2c.c | 3 ++-
drivers/iio/magnetometer/st_magn_spi.c | 3 ++-
drivers/iio/pressure/bmp280-core.c | 17 ++++++++++++++--
drivers/iio/pressure/bmp280-i2c.c | 4 ++++
drivers/iio/pressure/bmp280-regmap.c | 6 ++++--
drivers/iio/pressure/bmp280-spi.c | 6 ++++++
drivers/iio/pressure/hsc030pa.c | 12 +++++------
drivers/iio/pressure/hsc030pa.h | 5 ++---
drivers/iio/pressure/hsc030pa_i2c.c | 4 ----
drivers/iio/pressure/hsc030pa_spi.c | 5 -----
drivers/iio/pressure/mpl115.c | 13 +++++++++---
drivers/iio/pressure/mpl115.h | 1 +
drivers/iio/pressure/mpl115_i2c.c | 8 +++++++-
drivers/iio/pressure/mpl115_spi.c | 5 +++++
drivers/iio/pressure/mprls0025pa.c | 9 +++++++--
drivers/iio/pressure/mprls0025pa.h | 9 ++-------
drivers/iio/pressure/mprls0025pa_i2c.c | 1 -
drivers/iio/pressure/ms5611_core.c | 15 +++++++++++---
drivers/iio/pressure/ms5611_i2c.c | 5 ++++-
drivers/iio/pressure/ms5611_spi.c | 9 +++++++--
drivers/iio/pressure/st_pressure_buffer.c | 6 ++++--
drivers/iio/pressure/st_pressure_core.c | 9 ++++++---
drivers/iio/pressure/st_pressure_i2c.c | 3 ++-
drivers/iio/pressure/st_pressure_spi.c | 3 ++-
drivers/iio/pressure/zpa2326.c | 20 +++++++++++++++----
drivers/iio/pressure/zpa2326.h | 3 +++
drivers/iio/pressure/zpa2326_i2c.c | 7 +++++--
drivers/iio/pressure/zpa2326_spi.c | 6 +++++-
include/linux/iio/common/st_sensors_i2c.h | 5 ++---
include/linux/iio/common/st_sensors_spi.h | 5 ++---
49 files changed, 249 insertions(+), 106 deletions(-)
--
2.50.0
next reply other threads:[~2025-07-10 17:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-10 17:11 Jonathan Cameron [this message]
2025-07-10 17:11 ` [PATCH 1/7] iio: pressure: bmp280: Apply iwyu principles to includes Jonathan Cameron
2025-07-10 19:09 ` Andy Shevchenko
2025-07-10 17:11 ` [PATCH 2/7] iio: pressure: zpa2326: " Jonathan Cameron
2025-07-10 17:11 ` [PATCH 3/7] iio: pressure: mpl115: " Jonathan Cameron
2025-07-10 17:11 ` [PATCH 4/7] iio: pressure: ms5611: " Jonathan Cameron
2025-07-10 17:11 ` [PATCH 5/7] iio: pressure: hsc030pa: Apply IWYU " Jonathan Cameron
2025-07-10 17:11 ` [PATCH 6/7] iio: pressure: mprls0025pa: " Jonathan Cameron
2025-07-10 17:11 ` [PATCH 7/7] iio: st_sensors: " Jonathan Cameron
2025-07-10 19:09 ` [PATCH 0/7] IIO: More application of " Andy Shevchenko
2025-07-10 19:28 ` 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=20250710171107.443790-1-jic23@kernel.org \
--to=jic23@kernel.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=andy@kernel.org \
--cc=denis.ciocca@st.com \
--cc=dlechner@baylibre.com \
--cc=linux-iio@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=vassilisamir@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.