[PATCH v2 0/2] staging: iio: addac: adt7316: clean up header inclusions
From: Abdelnasser Hussein
Date: Fri Oct 30 2026 - 06:55:52 EST
This series cleans up header inclusions in adt7316.c
The changes are split into two logical patches:
1. Drop proxy header <linux/kernel.h> and explicitly include
<linux/bits.h> and <linux/kstrtox.h> per IWYU.
2. Explicitly include missing headers (<linux/err.h>, <linux/errno.h>,
<linux/pm.h>, <linux/string.h>, and <linux/types.h>), drop unused
headers, and sort the remaining headers alphabetically.
Note: <linux/device.h> is retained because the driver explicitly calls
dev_get_drvdata() and dev_set_drvdata().
v2:
- Split the original patch into a 2-patch series.
- Dropped proxy header <linux/kernel.h> and included <linux/bits.h>
and <linux/kstrtox.h>.
- Explicitly included missing headers for types, errors, and PM ops.
- Retained <linux/device.h> for device drvdata functions.
Abdelnasser Hussein (2):
staging: iio: addac: adt7316: replace kernel.h with bits.h and
kstrtox.h
staging: iio: addac: adt7316: explicitly include missing headers and
sort
drivers/staging/iio/addac/adt7316.c | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
--
2.56.0