[PATCH -next 0/7] mtd: tests: reduce duplication among mtd tests modules

Akinobu Mita akinobu.mita at gmail.com
Fri Jul 26 22:14:09 EDT 2013


This patch set reduces code duplication among mtd/tests modules by
moving common helper functions into mtd_test module.

Akinobu Mita (7):
  mtd: tests: introduce mtd_test module
  mtd: mtd_oobtest: use mtd_test module
  mtd: mtd_pagetest: use mtd_test module
  mtd: mtd_readtest: use mtd_test module
  mtd: mtd_speedtest: use mtd_test module
  mtd: mtd_stresstest: use mtd_test module
  mtd: mtd_subpagetest: use mtd_test module

 drivers/mtd/tests/Makefile          |   1 +
 drivers/mtd/tests/mtd_oobtest.c     |  92 +++--------------
 drivers/mtd/tests/mtd_pagetest.c    | 199 ++++++++++--------------------------
 drivers/mtd/tests/mtd_readtest.c    |  51 ++-------
 drivers/mtd/tests/mtd_speedtest.c   | 180 +++++++-------------------------
 drivers/mtd/tests/mtd_stresstest.c  |  86 +++-------------
 drivers/mtd/tests/mtd_subpagetest.c |  87 ++--------------
 drivers/mtd/tests/mtd_test.c        | 117 +++++++++++++++++++++
 drivers/mtd/tests/mtd_test.h        |  11 ++
 9 files changed, 262 insertions(+), 562 deletions(-)
 create mode 100644 drivers/mtd/tests/mtd_test.c
 create mode 100644 drivers/mtd/tests/mtd_test.h

Cc: Adrian Hunter <adrian.hunter at intel.com>
Cc: Artem Bityutskiy <dedekind1 at gmail.com>
Cc: David Woodhouse <dwmw2 at infradead.org>
Cc: linux-mtd at lists.infradead.org

-- 
1.8.3.1




More information about the linux-mtd mailing list