]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: spi-qpic-snand: make qcom_spi_ecc_engine_ops_pipelined const
authorCan Peng <pengcan@kylinos.cn>
Thu, 23 Oct 2025 02:42:50 +0000 (10:42 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 23 Oct 2025 13:10:53 +0000 (14:10 +0100)
commitfd5ef3d69f8975bad16c437a337b5cb04c8217a2
tree817545af5d9e12de979759df45b816f113c1f39c
parent7c69694cec869e3bf7c810fd94f860253aeb8053
spi: spi-qpic-snand: make qcom_spi_ecc_engine_ops_pipelined const

Marking the qcom_spi_ecc_engine_ops_pipelined as const provides
memory protection by preventing accidental modification of critical
function pointers at runtime. It also enables memory optimization
by placing the structure in read-only sections and improves code safety
by explicitly documenting the design intent that these operations
should not change after initialization.

Signed-off-by: Can Peng <pengcan@kylinos.cn>
Link: https://patch.msgid.link/20251023024250.3181084-1-pengcan@kylinos.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qpic-snand.c