mtd: nand: read ECC algorithm from the new field
authorRafał Miłecki <zajec5@gmail.com>
Sun, 17 Apr 2016 20:53:05 +0000 (22:53 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 5 May 2016 21:55:10 +0000 (23:55 +0200)
commit06f384c9010ea7fa1146b9dfdd419d99c9b8a962
tree0c93f6f3bfca05225e784fb5f73556ab8782f8f3
parentef296dc947f6a9300a7fb5b696d1e1f543479e18
mtd: nand: read ECC algorithm from the new field

Now we have all drivers properly setting this new field we can start
using it. For a very short period of time we should support both values:
NAND_ECC_SOFT and NAND_ECC_SOFT_BCH treating them the same. It's because
of_get_nand_ecc_mode may still be setting NAND_ECC_SOFT_BCH.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_base.c