Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06af3b02 authored by Boris Brezillon's avatar Boris Brezillon
Browse files

mtd: docg3: use mtd_set_ecclayout() where appropriate



Use the mtd_set_ecclayout() helper instead of directly assigning the
mtd->ecclayout field.

Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
parent eb8c2be5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1857,7 +1857,7 @@ static int __init doc_set_driver_info(int chip_id, struct mtd_info *mtd)
	mtd->_read_oob = doc_read_oob;
	mtd->_write_oob = doc_write_oob;
	mtd->_block_isbad = doc_block_isbad;
	mtd->ecclayout = &docg3_oobinfo;
	mtd_set_ecclayout(mtd, &docg3_oobinfo);
	mtd->oobavail = 8;
	mtd->ecc_strength = DOC_ECC_BCH_T;