[PATCH 1/3] mtd: spi-nor: explicitly include <linux/of.h>

Miquel Raynal miquel.raynal at bootlin.com
Fri Mar 7 00:15:18 PST 2025


On 07/03/2025 at 09:09:05 +02, Tudor Ambarus <tudor.ambarus at linaro.org> wrote:

> The core driver is using of_property_read_bool() and relies on implicit
> inclusion of <linux/of.h>, which comes from <linux/mtd/mtd.h>.
>
> It is good practice to directly include all headers used, it avoids
> implicit dependencies and spurious breakage if someone rearranges
> headers and causes the implicit include to vanish.
>
> Include the missing header.
>
> Signed-off-by: Tudor Ambarus <tudor.ambarus at linaro.org>

Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>

Thanks,
Miquèl



More information about the linux-mtd mailing list