spi: spi-qpic-snand: use NANDC_STEP_SIZE consistently
authorGabor Juhos <j4g8y7@gmail.com>
Sun, 25 May 2025 14:15:25 +0000 (16:15 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 8 Jun 2025 22:38:42 +0000 (23:38 +0100)
commit6c1ca9928ed48499f75101057079b92072077d44
tree798479f7f8f17485b85dac7f68e8563e145e2550
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
spi: spi-qpic-snand: use NANDC_STEP_SIZE consistently

Change the qcom_spi_read_page_ecc() function to use NANDC_STEP_SIZE
instead of a magic number while calculating the data size to keep it
consistent with other functions like qcom_spi_program_{raw,ecc,oob}
and qcom_spi_read_cw_{raw,page_oob}.

No functional changes.

Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Reviewed-by: Md Sadre Alam <quic_mdalam@quicinc.com>
Link: https://patch.msgid.link/20250525-qpic-snand-nandc_step_size-v1-1-6039e9bfe1c6@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qpic-snand.c