public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] iio: adc: Improve include relevance for some ADCs.
@ 2026-01-19 21:20 Jonathan Cameron
  2026-01-19 21:21 ` [PATCH 01/11] iio: adc: ltc2471: Improve include relevance Jonathan Cameron
                   ` (12 more replies)
  0 siblings, 13 replies; 21+ messages in thread
From: Jonathan Cameron @ 2026-01-19 21:20 UTC (permalink / raw)
  To: linux-iio, Andy Shevchenko
  Cc: David Lechner, Nuno Sá, Mike Looijmans, Liam Beguin,
	Miquel Raynal, Ibrahim Tilki, Cosmin Tanislav,
	Alisa-Dariana Roman, Jonathan Cameron

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

So this is a continuation of experimenting with IWYU to ensure that we
follow what I consider best practice in driver by including all
headers that are used (subject to some slightly fuzzy rules for some
of them standard kernel headers).

I was focusing on cases where kernel.h was included and moving from that
to the more specific headers. That partly explains why there were so
many headers to add. However, it is also clear that many standard
headers (mutex.h for example) were missing from these drivers.

There are a few notes and questions in the individual patch descriptions,
typically where I have either decided to ignore a recommendation or
conversely have broken things down more finely than IWYU was doing with
my config files.

All comments welcome.  Whilst I don't consider this particular high
priority (much of it was done in a train where I couldn't access my
email)m I would like to provide more examples in tree of what I consider
to the right way to do things!

Thanks,

Jonathan

Jonathan Cameron (11):
  iio: adc: ltc2471: Improve include relevance
  iio: adc: ltc2309: Improve include relevance
  iio: adc: max1027: Reorder headers into alphabetical order
  iio: adc: max1027: Improve include relevance
  iio: adc: max11100: Improve include relevance
  iio: adc: max11410: Improve relevance of includes
  iio: adc: ad4130: Improve include relevance
  iio: adc: ad7124: Improve include relevance
  iio: adc: ad7124: Replace device.h with more specific includes
  iio: adc: ad7192: Put headers in alphabetical order
  iio: adc: ad7192: Improve include relevance

 drivers/iio/adc/ad4130.c   | 22 ++++++++++++++++++----
 drivers/iio/adc/ad7124.c   | 17 +++++++++++++----
 drivers/iio/adc/ad7192.c   | 32 +++++++++++++++++++-------------
 drivers/iio/adc/ltc2309.c  |  9 ++++++++-
 drivers/iio/adc/ltc2471.c  |  8 ++++++--
 drivers/iio/adc/max1027.c  | 18 ++++++++++++++++--
 drivers/iio/adc/max11100.c | 11 ++++++++---
 drivers/iio/adc/max11410.c | 22 ++++++++++++++++++++--
 8 files changed, 108 insertions(+), 31 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2026-01-21  9:40 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-19 21:20 [PATCH 00/11] iio: adc: Improve include relevance for some ADCs Jonathan Cameron
2026-01-19 21:21 ` [PATCH 01/11] iio: adc: ltc2471: Improve include relevance Jonathan Cameron
2026-01-20  7:51   ` Andy Shevchenko
2026-01-19 21:21 ` [PATCH 02/11] iio: adc: ltc2309: " Jonathan Cameron
2026-01-20  7:52   ` Andy Shevchenko
2026-01-19 21:21 ` [PATCH 03/11] iio: adc: max1027: Reorder headers into alphabetical order Jonathan Cameron
2026-01-20  7:53   ` Andy Shevchenko
2026-01-19 21:21 ` [PATCH 04/11] iio: adc: max1027: Improve include relevance Jonathan Cameron
2026-01-20  7:56   ` Andy Shevchenko
2026-01-20 22:10     ` Jonathan Cameron
2026-01-20 22:52       ` Andy Shevchenko
2026-01-21  9:37   ` Nuno Sá
2026-01-19 21:21 ` [PATCH 05/11] iio: adc: max11100: " Jonathan Cameron
2026-01-19 21:21 ` [PATCH 06/11] iio: adc: max11410: Improve relevance of includes Jonathan Cameron
2026-01-19 21:21 ` [PATCH 07/11] iio: adc: ad4130: Improve include relevance Jonathan Cameron
2026-01-19 21:21 ` [PATCH 08/11] iio: adc: ad7124: " Jonathan Cameron
2026-01-19 21:21 ` [PATCH 09/11] iio: adc: ad7124: Replace device.h with more specific includes Jonathan Cameron
2026-01-19 21:21 ` [PATCH 10/11] iio: adc: ad7192: Put headers in alphabetical order Jonathan Cameron
2026-01-19 21:21 ` [PATCH 11/11] iio: adc: ad7192: Improve include relevance Jonathan Cameron
2026-01-20  7:58 ` [PATCH 00/11] iio: adc: Improve include relevance for some ADCs Andy Shevchenko
2026-01-21  9:41 ` Nuno Sá

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox