[PATCH v2 00/11] iio: temperature: make headers conform to IWYU

Joshua Crofts posted 11 patches 3 weeks, 4 days ago
drivers/iio/temperature/iqs620at-temp.c |  9 +++++++--
drivers/iio/temperature/ltc2983.c       | 19 +++++++++++++++----
drivers/iio/temperature/mlx90632.c      | 10 +++++++---
drivers/iio/temperature/mlx90635.c      | 11 +++++++----
drivers/iio/temperature/tmp117.c        |  9 +++++----
drivers/iio/temperature/tsys01.c        | 17 +++++++++++------
drivers/iio/temperature/tsys02d.c       | 12 +++++++++---
7 files changed, 61 insertions(+), 26 deletions(-)
[PATCH v2 00/11] iio: temperature: make headers conform to IWYU
Posted by Joshua Crofts 3 weeks, 4 days ago
This series removes any instances of kernel.h in the temperature/
subdirectory and cleans up the headers in order to improve readability
and enforce IYWU instead of relying on transitive dependencies during
the build process.

I had Gemini generate a summary (a bit more verbose) of changed headers
under the --- in each IWYU patch to improve the review process.

This is part of an ongoing effort to remove kernel.h entirely from IIO.

Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com>
---
Changes in v2:
- Add missing headers pointed out by Sashiko.
- Swap <asm/div64.h> for <linux/math64.h> (Jonathan, Andy).
- Squash small reordering patches with iwyu changes.
- Link to v1: https://lore.kernel.org/r/20260822-kernel-header-removal-v1-0-ee31b124be11@gmail.com

---
Joshua Crofts (11):
      iio: temperature: iqs620at-temp: make headers conform to IWYU
      iio: temperature: ltc2983: reorder headers
      iio: temperature: ltc2983: make headers conform to IWYU
      iio: temperature: mlx90632: make headers conform to IWYU
      iio: temperature: mlx90635: make headers conform to IWYU
      iio: temperature: tmp117: sort headers alphabetically
      iio: temperature: tmp117: make headers conform to IWYU
      iio: temperature: tsys01: reorder headers
      iio: temperature: tsys01: make headers conform to IWYU
      iio: temperature: tsys02d: reorder headers
      iio: temperature: tsys02d: make headers conform to IWYU

 drivers/iio/temperature/iqs620at-temp.c |  9 +++++++--
 drivers/iio/temperature/ltc2983.c       | 19 +++++++++++++++----
 drivers/iio/temperature/mlx90632.c      | 10 +++++++---
 drivers/iio/temperature/mlx90635.c      | 11 +++++++----
 drivers/iio/temperature/tmp117.c        |  9 +++++----
 drivers/iio/temperature/tsys01.c        | 17 +++++++++++------
 drivers/iio/temperature/tsys02d.c       | 12 +++++++++---
 7 files changed, 61 insertions(+), 26 deletions(-)
---
base-commit: 350d1fb9204b13c5f95e511e98b8bcb47574d425
change-id: 20260821-kernel-header-removal-d95efd197d78

Best regards,
-- 
Kind regards,
Joshua Crofts
Re: [PATCH v2 00/11] iio: temperature: make headers conform to IWYU
Posted by Joshua Crofts 3 weeks, 4 days ago
On Mon, 31 Aug 2026 at 23:13, Joshua Crofts <joshua.crofts1@gmail.com> wrote:
>
> This series removes any instances of kernel.h in the temperature/
> subdirectory and cleans up the headers in order to improve readability
> and enforce IYWU instead of relying on transitive dependencies during
> the build process.
>
> I had Gemini generate a summary (a bit more verbose) of changed headers
> under the --- in each IWYU patch to improve the review process.
>
> This is part of an ongoing effort to remove kernel.h entirely from IIO.
>
> Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com>
> ---
> Changes in v2:
> - Add missing headers pointed out by Sashiko.
> - Swap <asm/div64.h> for <linux/math64.h> (Jonathan, Andy).
> - Squash small reordering patches with iwyu changes.
> - Link to v1: https://lore.kernel.org/r/20260822-kernel-header-removal-v1-0-ee31b124be11@gmail.com
>
> ---
> Joshua Crofts (11):
>       iio: temperature: iqs620at-temp: make headers conform to IWYU
>       iio: temperature: ltc2983: reorder headers
>       iio: temperature: ltc2983: make headers conform to IWYU
>       iio: temperature: mlx90632: make headers conform to IWYU
>       iio: temperature: mlx90635: make headers conform to IWYU
>       iio: temperature: tmp117: sort headers alphabetically
>       iio: temperature: tmp117: make headers conform to IWYU
>       iio: temperature: tsys01: reorder headers
>       iio: temperature: tsys01: make headers conform to IWYU
>       iio: temperature: tsys02d: reorder headers
>       iio: temperature: tsys02d: make headers conform to IWYU
>
>  drivers/iio/temperature/iqs620at-temp.c |  9 +++++++--
>  drivers/iio/temperature/ltc2983.c       | 19 +++++++++++++++----
>  drivers/iio/temperature/mlx90632.c      | 10 +++++++---
>  drivers/iio/temperature/mlx90635.c      | 11 +++++++----
>  drivers/iio/temperature/tmp117.c        |  9 +++++----
>  drivers/iio/temperature/tsys01.c        | 17 +++++++++++------
>  drivers/iio/temperature/tsys02d.c       | 12 +++++++++---
>  7 files changed, 61 insertions(+), 26 deletions(-)
> ---

I seem to be having b4 issues as this sent v2 again with the same
mistakes?

-- 
Kind regards

CJD
Re: [PATCH v2 00/11] iio: temperature: make headers conform to IWYU
Posted by Joshua Crofts 3 weeks, 4 days ago
On Tue, 1 Sept 2026 at 07:09, Joshua Crofts <joshua.crofts1@gmail.com> wrote:
> > Changes in v2:
> > - Add missing headers pointed out by Sashiko.
> > - Swap <asm/div64.h> for <linux/math64.h> (Jonathan, Andy).
> > - Squash small reordering patches with iwyu changes.
> > - Link to v1: https://lore.kernel.org/r/20260822-kernel-header-removal-v1-0-ee31b124be11@gmail.com
> >
> > ---
> > Joshua Crofts (11):
> >       iio: temperature: iqs620at-temp: make headers conform to IWYU
> >       iio: temperature: ltc2983: reorder headers
> >       iio: temperature: ltc2983: make headers conform to IWYU
> >       iio: temperature: mlx90632: make headers conform to IWYU
> >       iio: temperature: mlx90635: make headers conform to IWYU
> >       iio: temperature: tmp117: sort headers alphabetically
> >       iio: temperature: tmp117: make headers conform to IWYU
> >       iio: temperature: tsys01: reorder headers
> >       iio: temperature: tsys01: make headers conform to IWYU
> >       iio: temperature: tsys02d: reorder headers
> >       iio: temperature: tsys02d: make headers conform to IWYU
> >
> >  drivers/iio/temperature/iqs620at-temp.c |  9 +++++++--
> >  drivers/iio/temperature/ltc2983.c       | 19 +++++++++++++++----
> >  drivers/iio/temperature/mlx90632.c      | 10 +++++++---
> >  drivers/iio/temperature/mlx90635.c      | 11 +++++++----
> >  drivers/iio/temperature/tmp117.c        |  9 +++++----
> >  drivers/iio/temperature/tsys01.c        | 17 +++++++++++------
> >  drivers/iio/temperature/tsys02d.c       | 12 +++++++++---
> >  7 files changed, 61 insertions(+), 26 deletions(-)
> > ---
>
> I seem to be having b4 issues as this sent v2 again with the same
> mistakes?

Okay, never mind. b4 did send the right series but forgot to bump the version
number up.

Anyway, some Sashiko remarks - just commit message issues (forgot to update
some headers under the ---) + one remark about me including slab.h for
GFP_KERNEL, but I suppose I could change this to gfp_types.h instead.

-- 
Kind regards,
Joshua Crofts
Re: [PATCH v2 00/11] iio: temperature: make headers conform to IWYU
Posted by Jonathan Cameron 3 weeks ago
On Tue, 1 Sep 2026 09:55:09 +0200
Joshua Crofts <joshua.crofts1@gmail.com> wrote:

> On Tue, 1 Sept 2026 at 07:09, Joshua Crofts <joshua.crofts1@gmail.com> wrote:
> > > Changes in v2:
> > > - Add missing headers pointed out by Sashiko.
> > > - Swap <asm/div64.h> for <linux/math64.h> (Jonathan, Andy).
> > > - Squash small reordering patches with iwyu changes.
> > > - Link to v1: https://lore.kernel.org/r/20260822-kernel-header-removal-v1-0-ee31b124be11@gmail.com
> > >
> > > ---
> > > Joshua Crofts (11):
> > >       iio: temperature: iqs620at-temp: make headers conform to IWYU
> > >       iio: temperature: ltc2983: reorder headers
> > >       iio: temperature: ltc2983: make headers conform to IWYU
> > >       iio: temperature: mlx90632: make headers conform to IWYU
> > >       iio: temperature: mlx90635: make headers conform to IWYU
> > >       iio: temperature: tmp117: sort headers alphabetically
> > >       iio: temperature: tmp117: make headers conform to IWYU
> > >       iio: temperature: tsys01: reorder headers
> > >       iio: temperature: tsys01: make headers conform to IWYU
> > >       iio: temperature: tsys02d: reorder headers
> > >       iio: temperature: tsys02d: make headers conform to IWYU
> > >
> > >  drivers/iio/temperature/iqs620at-temp.c |  9 +++++++--
> > >  drivers/iio/temperature/ltc2983.c       | 19 +++++++++++++++----
> > >  drivers/iio/temperature/mlx90632.c      | 10 +++++++---
> > >  drivers/iio/temperature/mlx90635.c      | 11 +++++++----
> > >  drivers/iio/temperature/tmp117.c        |  9 +++++----
> > >  drivers/iio/temperature/tsys01.c        | 17 +++++++++++------
> > >  drivers/iio/temperature/tsys02d.c       | 12 +++++++++---
> > >  7 files changed, 61 insertions(+), 26 deletions(-)
> > > ---  
> >
> > I seem to be having b4 issues as this sent v2 again with the same
> > mistakes?  
> 
> Okay, never mind. b4 did send the right series but forgot to bump the version
> number up.
> 
> Anyway, some Sashiko remarks - just commit message issues (forgot to update
> some headers under the ---) + one remark about me including slab.h for
> GFP_KERNEL, but I suppose I could change this to gfp_types.h instead.
> 
Lets not go around the houses for ever.  Close enough to perfect for me.

Applied, thanks!

Jonathan