mtd: nand: tango: Update ecc_stats.corrected
authorMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
Fri, 12 May 2017 15:34:01 +0000 (17:34 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 22 May 2017 07:42:29 +0000 (09:42 +0200)
commit60cf0ce14b09b54e7ee79dc3ef498de6ef0e41e9
tree07562bedd877e8d50e4fd744a5e7a29ba51f44de
parent2761b4f12b017f6d3e5add386733a700a490df47
mtd: nand: tango: Update ecc_stats.corrected

According to Boris, some user-space tools expect MTD drivers to
update ecc_stats.corrected, and it's better to provide a lower
bound than to provide no information at all.

Fixes: 6956e2385a16 ("mtd: nand: add tango NAND flash controller support")
Cc: stable@vger.kernel.org
Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/tango_nand.c