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

Commit c7626802 authored by Rohit Hassan Sathyanarayan's avatar Rohit Hassan Sathyanarayan Committed by David Woodhouse
Browse files

mtd: MLC device check in OneNAND driver



The MLC NAND Flash differs from the SLC NAND flash in functioning
and the cell structure. Therefore we are considering it as a
different Flash type.

Signed-off-by: default avatarRohit H.S <rohit.hs@samsung.com>
Signed-off-by: default avatarRaghav Gupta <gupta.raghav@samsung.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 17a22826
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4027,7 +4027,7 @@ int onenand_scan(struct mtd_info *mtd, int maxchips)
	mtd->ecclayout = this->ecclayout;

	/* Fill in remaining MTD driver data */
	mtd->type = MTD_NANDFLASH;
	mtd->type = ONENAND_IS_MLC(this) ? MTD_MLCNANDFLASH : MTD_NANDFLASH;
	mtd->flags = MTD_CAP_NANDFLASH;
	mtd->erase = onenand_erase;
	mtd->point = NULL;