Re: [PATCH] mtd: nand-omap2: Move omap_nand_ids[] to raw nand driver

From: Miquel Raynal

Date: Fri Jul 17 2026 - 11:55:10 EST


On Thu, 16 Jul 2026 21:25:23 +0200, Uwe Kleine-König (The Capable Hub) wrote:
> Defining a static array in a header results in each .c file that
> includes the header (here: drivers/memory/omap-gpmc.c and
> drivers/mtd/nand/raw/omap2.c) to contain a copy of that array when
> compiled to an object file.
>
> With sizeof(struct of_device_id[3]) ≥ 588 having omap_nand_ids[] twice
> just to do two string comparisons is quite some bloat. So move
> omap_nand_ids[] to the nand driver which actually needs that array for
> its module meta data and do the compatible check by hand.
>
> [...]

Applied to nand/next, thanks!

[1/1] mtd: nand-omap2: Move omap_nand_ids[] to raw nand driver
commit: f97bdc8ec1dc7b33781a702eeba55326c206be56

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl