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)
commit5346c27c5fed6b30aff35e1fcb595625097e646c
treec10264204d119f2ebee24ab858009302c3b6e2f9
parente58a66d84bceba314b03e37ec0764b9b1b9227d0
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