Re: [PATCH v4 2/2] iio: adc: spear_adc: align headers with IWYU principle

From: Andy Shevchenko

Date: Fri Jun 05 2026 - 14:18:30 EST


On Tue, May 26, 2026 at 10:36:40PM -0300, Rodrigo Gobbi wrote:
> Remove unused includes and add what is being used:
>
> #include <linux/array_size.h> // for ARRAY_SIZE
> #include <linux/bits.h> // for GENMASKxx
> #include <linux/dev_printk.h> // for dev_err_probe, dev_info
> #include <linux/math.h> // for DIV_ROUND_UP
> #include <linux/mutex.h> // for struct mutex
> #include <linux/types.h> // for uXX definitions

> #include <linux/iio/types.h> // for IIO_CHAN_INFO_*

I guess we tend to avoid including this one as long as iio/iio.h is included.

--
With Best Regards,
Andy Shevchenko