]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nandsim: Introduce debugfs infrastructure
authorEzequiel Garcia <elezegarcia@gmail.com>
Mon, 3 Dec 2012 13:31:40 +0000 (10:31 -0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 10 Dec 2012 14:42:42 +0000 (16:42 +0200)
commit2320dfa1b80205508e217a11476189e9e352a4a5
treec10264204d119f2ebee24ab858009302c3b6e2f9
parent8811607bcb97fa0a3cfdd5560b9a123d05f923c3
mtd: nandsim: Introduce debugfs infrastructure

It's more user friendly to report debug information and statistics
through debugfs, than to use printing facilites.

This patch introduces a very minimal debugfs infrastructure
and moves eraseblock wear report to an entry located at:

/sys/kernel/debug/nandsim/wear_report

This means we can remove rptwear option and just let
the user get the wear report when we needs to.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/nand/nandsim.c