mtd: Add sysfs attributes to expose the ECC stats fields
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 24 Jun 2014 13:55:50 +0000 (10:55 -0300)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 9 Jul 2014 01:37:26 +0000 (18:37 -0700)
commit990a3af0c20590954be01a95c2c3fcef9360a836
treefc993286f8726b9a413b4d79e21133f3157ec2e8
parent89384f646287437ba18afb28ccb125d5866a7209
mtd: Add sysfs attributes to expose the ECC stats fields

These new sysfs device attributes allow us to retrieve the ECC and bad
block stats by poking a sysfs file, which is often more convenient than
using the ioctl.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Documentation/ABI/testing/sysfs-class-mtd
drivers/mtd/mtdcore.c