* [PATCH v2 0/2] iio: gyro: header cleanups
@ 2026-11-29 19:33 Joshua Crofts
2026-11-29 19:33 ` [PATCH v2 1/2] iio: gyro: adis16080: apply iwyu principle Joshua Crofts
2026-11-29 19:33 ` [PATCH v2 2/2] iio: gyro: adis16136: " Joshua Crofts
0 siblings, 2 replies; 3+ messages in thread
From: Joshua Crofts @ 2026-11-29 19:33 UTC (permalink / raw)
To: Nuno Sá,
Michael Hennerich, Jonathan Cameron, David Lechner,
Andy Shevchenko, Nishant Malpani
Cc: linux, linux-iio, linux-kernel, Joshua Crofts
Remove any kernel.h occurences in gyro/ and update the headers in
accordance with IWYU (at least loosely).
Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
Changes in v2:
- Address Sashiko review: a few missing and unused includes.
- Link to v1: https://lore.kernel.org/r/20261125-gyro-kernel-header-removal-v1-0-969b3e668d35@kernel.org
---
Joshua Crofts (2):
iio: gyro: adis16080: apply iwyu principle
iio: gyro: adis16136: apply iwyu principle
drivers/iio/gyro/adis16080.c | 13 ++++++++-----
drivers/iio/gyro/adis16136.c | 12 +++++++++---
2 files changed, 17 insertions(+), 8 deletions(-)
---
base-commit: a6d01d696125566b722cde7293fb1735b7866be1
change-id: 20261120-gyro-kernel-header-removal-7e7ce8b60656
Best regards,
--
Joshua Crofts
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH v2 1/2] iio: gyro: adis16080: apply iwyu principle
2026-11-29 19:33 [PATCH v2 0/2] iio: gyro: header cleanups Joshua Crofts
@ 2026-11-29 19:33 ` Joshua Crofts
2026-11-29 19:33 ` [PATCH v2 2/2] iio: gyro: adis16136: " Joshua Crofts
1 sibling, 0 replies; 3+ messages in thread
From: Joshua Crofts @ 2026-11-29 19:33 UTC (permalink / raw)
To: Nuno Sá,
Michael Hennerich, Jonathan Cameron, David Lechner,
Andy Shevchenko, Nishant Malpani
Cc: linux, linux-iio, linux-kernel, Joshua Crofts
Remove the catch all kernel.h header and add/remove the remaining
headers in accordance with the IWYU principle.
Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
| 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
--git a/drivers/iio/gyro/adis16080.c b/drivers/iio/gyro/adis16080.c
index 27e6f28c69d5..cb75a5b6d342 100644
--- a/drivers/iio/gyro/adis16080.c
+++ b/drivers/iio/gyro/adis16080.c
@@ -4,17 +4,20 @@
*
* Copyright 2010 Analog Devices Inc.
*/
-#include <linux/delay.h>
+
+#include <linux/array_size.h>
+#include <linux/bitops.h>
#include <linux/device.h>
-#include <linux/kernel.h>
+#include <linux/errno.h>
+#include <linux/math.h>
#include <linux/module.h>
#include <linux/mutex.h>
-#include <linux/slab.h>
#include <linux/spi/spi.h>
-#include <linux/sysfs.h>
+#include <linux/types.h>
+
+#include <asm/byteorder.h>
#include <linux/iio/iio.h>
-#include <linux/iio/sysfs.h>
#define ADIS16080_DIN_GYRO (0 << 10) /* Gyroscope output */
#define ADIS16080_DIN_TEMP (1 << 10) /* Temperature output */
--
2.56.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2 2/2] iio: gyro: adis16136: apply iwyu principle
2026-11-29 19:33 [PATCH v2 0/2] iio: gyro: header cleanups Joshua Crofts
2026-11-29 19:33 ` [PATCH v2 1/2] iio: gyro: adis16080: apply iwyu principle Joshua Crofts
@ 2026-11-29 19:33 ` Joshua Crofts
1 sibling, 0 replies; 3+ messages in thread
From: Joshua Crofts @ 2026-11-29 19:33 UTC (permalink / raw)
To: Nuno Sá,
Michael Hennerich, Jonathan Cameron, David Lechner,
Andy Shevchenko, Nishant Malpani
Cc: linux, linux-iio, linux-kernel, Joshua Crofts
Remove the catch all kernel.h header and add/remove the remaining
headers in accordance with the IWYU principle.
Signed-off-by: Joshua Crofts <crofts@kernel.org>
---
| 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
--git a/drivers/iio/gyro/adis16136.c b/drivers/iio/gyro/adis16136.c
index b687588ada03..8312217859d0 100644
--- a/drivers/iio/gyro/adis16136.c
+++ b/drivers/iio/gyro/adis16136.c
@@ -6,17 +6,23 @@
* Author: Lars-Peter Clausen <lars@metafoo.de>
*/
+#include <linux/array_size.h>
+#include <linux/bitops.h>
+#include <linux/debugfs.h>
#include <linux/device.h>
-#include <linux/kernel.h>
+#include <linux/errno.h>
+#include <linux/kstrtox.h>
+#include <linux/module.h>
#include <linux/spi/spi.h>
+#include <linux/sprintf.h>
+#include <linux/stat.h>
#include <linux/sysfs.h>
-#include <linux/module.h>
+#include <linux/types.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
#include <linux/iio/imu/adis.h>
-#include <linux/debugfs.h>
#define ADIS16136_REG_FLASH_CNT 0x00
#define ADIS16136_REG_TEMP_OUT 0x02
--
2.56.0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-29 19:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29 19:33 [PATCH v2 0/2] iio: gyro: header cleanups Joshua Crofts
2026-11-29 19:33 ` [PATCH v2 1/2] iio: gyro: adis16080: apply iwyu principle Joshua Crofts
2026-11-29 19:33 ` [PATCH v2 2/2] iio: gyro: adis16136: " Joshua Crofts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®