Re: [PATCH v2 3/5] iio: dac: ad5504: Align headers with IWYU principle
From: Andy Shevchenko
Date: Tue Mar 10 2026 - 14:32:46 EST
On Tue, Mar 10, 2026 at 05:48:33PM +0000, Taha Ed-Dafili wrote:
> Update the header inclusions to follow the IWYU principle.
>
> - Remove <linux/fs.h> and <linux/slab.h> as they are unused. The driver
> relies on devm_ managed allocations, so slab is not required.
...
> -#include <linux/bitops.h>
> +#include <linux/bits.h>
> #include <linux/device.h>
Is this still being used directly.
> -#include <linux/fs.h>
> +#include <linux/errno.h>
> #include <linux/interrupt.h>
> #include <linux/kernel.h>
And what is this for?
> +#include <linux/mod_devicetable.h>
> #include <linux/module.h>
> #include <linux/regulator/consumer.h>
> -#include <linux/slab.h>
> #include <linux/spi/spi.h>
> #include <linux/sysfs.h>
> +#include <linux/types.h>
The rest of the changes looks correct, but still missing headers:
linux/kstrtox.h
asm/byteorder.h
Might be more.
--
With Best Regards,
Andy Shevchenko