OSDN Git Service

mtd: rawnand: txx9ndfmc: clarify ECC parameters assignation
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 25 Jul 2018 13:31:48 +0000 (15:31 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 31 Jul 2018 07:46:13 +0000 (09:46 +0200)
commitabe23d1c5cdf888639313bf87880d2692d0b8724
tree36549f2f24a0c84f945ea612721bb85a339577f1
parent176fc2f28ee5ebd494c39d25dda3e0a71e0b649a
mtd: rawnand: txx9ndfmc: clarify ECC parameters assignation

A comment in the probe declares that values are assigned to ecc.size
and ecc.bytes, but these values will be overwritten. This is not
entirely right as they are overwritten only if
mtd->writesize >= 512. Let's clarify this by moving these assignations
to txx9ndfmc_nand_scan().

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/raw/txx9ndfmc.c