[PATCH 02/14] iio: temperature: iqs620at-temp: make headers conform to IWYU
From: Joshua Crofts
Date: Sat Aug 22 2026 - 04:04:50 EST
Remove the catch-all kernel.h header and add the missing headers to
enforce IWYU.
Signed-off-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
---
Header changes explained:
Added:
- <asm/byteorder.h>: for endianness helpers
- <linux/array_size.h>: for ARRAY_SIZE()
- <linux/bits.h>: for GENMASK() and BIT() macros
- <linux/types.h>: for fixed-width integer types (u8, u16, etc.)
Removed:
- <linux/kernel.h>: catch-all header no longer needed
---
drivers/iio/temperature/iqs620at-temp.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/iio/temperature/iqs620at-temp.c b/drivers/iio/temperature/iqs620at-temp.c
index 24b4d50740f3..3a3b1f256585 100644
--- a/drivers/iio/temperature/iqs620at-temp.c
+++ b/drivers/iio/temperature/iqs620at-temp.c
@@ -5,12 +5,16 @@
* Copyright (C) 2019 Jeff LaBundy <jeff@xxxxxxxxxxx>
*/
+#include <linux/array_size.h>
+#include <linux/bits.h>
#include <linux/device.h>
-#include <linux/kernel.h>
#include <linux/mfd/iqs62x.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
+#include <linux/types.h>
+
+#include <asm/byteorder.h>
#include <linux/iio/iio.h>
--
2.55.0