mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] staging: iio: addac: adt7316: clean up header inclusions
@ 2026-10-30 10:47 Abdelnasser Hussein
  2026-10-30 10:47 ` [PATCH v2 1/2] staging: iio: addac: adt7316: replace kernel.h with bits.h and kstrtox.h Abdelnasser Hussein
  2026-10-30 10:47 ` [PATCH v2 2/2] staging: iio: addac: adt7316: explicitly include missing headers and sort Abdelnasser Hussein
  0 siblings, 2 replies; 4+ messages in thread
From: Abdelnasser Hussein @ 2026-10-30 10:47 UTC (permalink / raw)
  To: Jonathan Cameron, Greg Kroah-Hartman, Nuno Sa, Michael Hennerich
  Cc: David Lechner, Andy Shevchenko, linux-iio, linux-staging, linux,
	linux-kernel, Abdelnasser Hussein

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-30 11:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 10:47 [PATCH v2 0/2] staging: iio: addac: adt7316: clean up header inclusions Abdelnasser Hussein
2026-10-30 10:47 ` [PATCH v2 1/2] staging: iio: addac: adt7316: replace kernel.h with bits.h and kstrtox.h Abdelnasser Hussein
2026-10-30 10:47 ` [PATCH v2 2/2] staging: iio: addac: adt7316: explicitly include missing headers and sort Abdelnasser Hussein
2026-10-30 11:40   ` 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®