diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-03-23 11:19:00 +0100 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-04-19 22:02:32 +0200 |
commit | b0fcd8ab7b3c89b5da7fff5224d06ed73e7a33cc (patch) | |
tree | 6df4158de505ece04e61fe394eecd0bf227574b6 /drivers/of | |
parent | Merge branch 'mtd-nand-trigger' of git://git.kernel.org/pub/scm/linux/kernel/... (diff) | |
download | linux-b0fcd8ab7b3c89b5da7fff5224d06ed73e7a33cc.tar.xz linux-b0fcd8ab7b3c89b5da7fff5224d06ed73e7a33cc.zip |
mtd: nand: add new enum for storing ECC algorithm
Our nand_ecc_modes_t is already a bit abused by value NAND_ECC_SOFT_BCH.
This enum should store ECC mode only and putting algorithm details there
is a bad idea. It would result in too many values impossible to support
in a sane way.
To solve this problem let's add a new enum. We'll have to modify all
drivers to set it properly but once it's done it'll be possible to drop
NAND_ECC_SOFT_BCH. That will result in a cleaner design and more
possibilities like setting ECC algorithm for hardware ECC mode.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/of')
0 files changed, 0 insertions, 0 deletions