mtd: rawnand: qcom: use the ecc strength from device parameter
authorAbhishek Sahu <absahu@codeaurora.org>
Wed, 20 Jun 2018 07:27:32 +0000 (12:57 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Jul 2018 07:24:06 +0000 (09:24 +0200)
commit7ddb937f2c1dc79a9d35e6319b96e05ba7b04a8f
tree23efd7122acfa0de43617e73eb3835cdeacdb3d9
parent320bdb5fb9c4a6b67ceadab2d7ed74c21c957561
mtd: rawnand: qcom: use the ecc strength from device parameter

Currently the driver uses the ECC strength specified in DT.
The QPIC/EBI2 NAND supports 4 or 8-bit ECC correction. The same
kind of board can have different NAND parts so use the ECC
strength from device parameters if it is not specified in DT.

Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/qcom_nandc.c