]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: spi-qpic-snand: remove 'clr*status' members of struct 'qpic_ecc'
authorGabor Juhos <j4g8y7@gmail.com>
Sun, 10 Aug 2025 14:38:51 +0000 (16:38 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 11 Aug 2025 16:18:53 +0000 (17:18 +0100)
commit6b7e2aa50bdaf88cd4c2a5e2059a7bf32d85a8b1
tree4d052961df97773b3edf6756971cbb8378931103
parentfbec18dc9940a89e094bae890b8dc0af00ddc4ff
spi: spi-qpic-snand: remove 'clr*status' members of struct 'qpic_ecc'

In the qcom_spi_ecc_init_ctx_pipelined() function, the 'clrflashstatus'
and the 'clrreadstatus' members of the ECC context gets initialized with
constant values. Then these values are used by several functions to set
the corresponding members in the register cache.

Because the values are never modified, change the code to set the those
directly in the register cache by the qcom_spi_ecc_init_ctx_pipelined()
function, and remove the repetitive code from the other functions to
reduce code duplication.

Also, remove the respective members from the 'qpic_ecc' structure as
those became unused due to the change.

No functional changes intended.

Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Link: https://patch.msgid.link/20250810-qpic-snand-qpic_ecc-cleanup-v1-2-33a6b2bcbc67@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qpic-snand.c