[PATCH 0/7] spi: spi-qpic-snand: use generic code from the 'qpic_common' module
Gabor Juhos
j4g8y7 at gmail.com
Mon Nov 9 11:41:01 PST 2026
Since commit cfae2182fa7b ("mtd: rawnand: qcom: move common code to the
'qpic_common' module"), the 'qpic_common' module provides several generic
functions which can be utilized from the 'spi-qpic-snand' driver instead
of the locally implemented code.
This series converts the driver to use the common code to reduce code
duplication.
In order to make review easier, there are separate patches for each
functions and another one for reusing the 'qcom_nandc_read_stats'
structure.
Signed-off-by: Gabor Juhos <j4g8y7 at gmail.com>
---
Gabor Juhos (7):
spi: spi-qpic-snand: use the common qcom_nandc_check_flash_errors() function
spi: spi-qpic-snand: use the common qcom_nandc_config_page_read() function
spi: spi-qpic-snand: use the common qcom_nandc_config_page_write() function
spi: spi-qpic-snand: use the common qcom_nandc_config_cw_write() function
spi: spi-qpic-snand: use the common qcom_nandc_set_read_loc_first() function
spi: spi-qpic-snand: use the common qcom_nandc_set_read_loc_last() function
spi: spi-qpic-snand: use the common 'qcom_nandc_read_stats' structure
drivers/spi/spi-qpic-snand.c | 137 ++++++++-----------------------------------
1 file changed, 24 insertions(+), 113 deletions(-)
---
base-commit: 4a8faaea975be15cb636646c0d4c6ff1c2110baa
change-id: 20261028-qpic-snand-use-common-functions-12b18fc7a1e5
prerequisite-change-id: 20260922-qpic-snand-fix-singlecw-readloc-c4c89b4369f5:v2
prerequisite-patch-id: 7f8a48bccb2e3c8de950bbddacfefe052cea50b8
Best regards,
--
Gabor Juhos <j4g8y7 at gmail.com>
More information about the linux-mtd
mailing list