]> Gentwo Git Trees - linux/.git/commit
mtd: rawnand: realtek: Make rtl_ecc_engine_ops const
authorLi Qiang <liqiang01@kylinos.cn>
Mon, 20 Oct 2025 12:53:33 +0000 (20:53 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 22 Oct 2025 09:54:42 +0000 (11:54 +0200)
commit9631350885929819d4e46c6521df35960b472ef3
treebd084f85e3dfd54f29fe916d5dc9fd7038ec406a
parent0d9c80aa572182d4b1464826cd77aa8973213216
mtd: rawnand: realtek: Make rtl_ecc_engine_ops const

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.

Signed-off-by: Li Qiang <liqiang01@kylinos.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/ecc-realtek.c