Re: [PATCH 7/7] iio: pressure: dps310: include what the driver uses

From: Joshua Crofts

Date: Wed Nov 25 2026 - 03:01:57 EST


On 25-Nov-26 8:50, Rupesh Majhi wrote:
> On Tue, Nov 24, 2026 at 08:03:59AM +0100, Uwe Kleine-König wrote:
>> > +#include <linux/mod_devicetable.h>
>>
>> don't add <linux/mod_devicetable.h>. I don't know what made you think
>> this is needed, but it is not. i2c_device_id is already provided by
>> <linux/i2c.h> without the overhead (and useless dependencies).
>
> It was for the of_device_id and acpi_device_id tables. v2 will include
> linux/device-id/of.h and linux/device-id/acpi.h for those instead.
You don't need to include these (unless you're going for full IWYU).
They will be pulled by the respective bus headers.

--
Kind regards,
Joshua Crofts