Re: [PATCH v2 11/11] iio: temperature: tsys02d: make headers conform to IWYU
From: Joshua Crofts
Date: Sat Aug 29 2026 - 12:36:53 EST
On Sat, 29 Aug 2026 18:26:08 +0200
Joshua Crofts <joshua.crofts1@xxxxxxxxx> wrote:
> Remove the catch-all kernel.h header, add missing headers and remove
> unused headers.
>
> Signed-off-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
> ---
> Header changes explained:
> Added:
> - <linux/array_size.h>: for ARRAY_SIZE()
> - <linux/bits.h>: for GENMASK() and BIT() macros
> - <linux/i2c.h>: for i2c_client and i2c_device_id
> - <linux/mutex.h>: for struct mutex and mutex_lock/unlock
> - <linux/sysfs.h>: for sysfs API
> - <linux/types.h>: for fixed-width integer types (u8, u16, etc.)
> Removed:
> - <linux/init.h>: not directly used in this driver
> - <linux/kernel.h>: catch-all header no longer needed
> ---
> drivers/iio/temperature/ltc2983.c | 1 -
> drivers/iio/temperature/tsys02d.c | 8 ++++++--
> 2 files changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/iio/temperature/ltc2983.c b/drivers/iio/temperature/ltc2983.c
> index b8deb9aa9d48..6c4de6854683 100644
> --- a/drivers/iio/temperature/ltc2983.c
> +++ b/drivers/iio/temperature/ltc2983.c
> @@ -11,7 +11,6 @@
> #include <linux/bitops.h>
> #include <linux/completion.h>
> #include <linux/container_of.h>
> -#include <linux/dev_printk.h>
Ugh, how did this stray change get in here? Must've been
a bad fixup...
--
Kind regards,
Joshua Crofts