spi: spi-qpic-snand: reuse qcom_spi_check_raw_flash_errors()
authorGabor Juhos <j4g8y7@gmail.com>
Wed, 14 May 2025 10:16:38 +0000 (12:16 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 21 May 2025 17:56:06 +0000 (18:56 +0100)
commit4026c6b51cb9ffd1eea2206191552f8aa3cb55ea
treeb1586a4f98c898948b6cf448075679c5eeba5f55
parent70e5f38e734572ca5a56cff48cf01a0f31917099
spi: spi-qpic-snand: reuse qcom_spi_check_raw_flash_errors()

The qcom_spi_check_raw_flash_errors() function can be used to
verify the flash status after raw operations.

Move the function slightly up in the code and change the
qcom_spi_read_last_cw() function to call it instead of using
an open coded implementation of the same check.

Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Link: https://patch.msgid.link/20250514-qpic-snand-error-check-v1-1-c0ebd3aae72a@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qpic-snand.c