mtd: spinand: Refactor ECC/OOB functions
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Tue, 30 Sep 2025 00:20:54 +0000 (03:20 +0300)
committerMichael Trimarchi <michael@amarulasolutions.com>
Sun, 5 Oct 2025 18:26:00 +0000 (20:26 +0200)
commite644bb73dac9eef331978ca9a3e6046b5a24d62b
treed5de0a0f2d5873f08cf6b7b4ea747caeaec7a8b1
parenta3770a6325c0b813d96ddf9bd545b7cd2dced23d
mtd: spinand: Refactor ECC/OOB functions

changes:
 * Move spinand_check_ecc_status(), spinand_noecc_ooblayout_ecc(),
   spinand_noecc_ooblayout_free() and spinand_noecc_ooblayout close
   to each other.
 * some code formatting
 * remove comments not present in linux driver

This aligns the code with Linux 6.10.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
drivers/mtd/nand/spi/core.c