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

Miquel Raynal <[email protected]>
Newsgroups org.infradead.lists.linux-mtd,org.kernel.vger.linux-kernel,org.kernel.vger.linux-omap
Message-ID <[email protected]>
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


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.