[PATCH] mtd: rawnand: realtek: Make rtl_ecc_engine_ops const

Miquel Raynal miquel.raynal at bootlin.com
Wed Oct 22 02:56:58 PDT 2025


On Mon, 20 Oct 2025 20:53:33 +0800, Li Qiang wrote:
> The rtl_ecc_engine_ops structure is only used to provide a set of
> callback functions and is never modified after initialization.
> Mark it as const so it can be placed in the read-only section, which
> improves safety and allows better compiler optimization.
> 
> 

Applied to mtd/fixes, thanks!

[1/1] mtd: rawnand: realtek: Make rtl_ecc_engine_ops const
      commit: 9631350885929819d4e46c6521df35960b472ef3

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




More information about the linux-mtd mailing list