Huang Shijie
818b973929
mtd: nand: add a helper to detect the nand type
...
This helper detects that whether the mtd's type is nand type.
Now, it's clear that the MTD_NANDFLASH stands for SLC nand only.
So use the mtd_type_is_nand() to replace the old check method
to do the nand type (include the SLC and MLC) check.
Signed-off-by: Huang Shijie <b32955@freescale.com >
Signed-off-by: Brian Norris <computersforpeace@gmail.com >
2013-10-27 16:27:06 -07:00
Akinobu Mita
4bf527aa53
mtd: mtd_oobtest: use mtd_test helpers
...
Use mtdtest_scan_for_bad_eraseblocks(), mtdtest_erase_good_eraseblocks(),
and mtdtest_erase_eraseblock() in mtd_test helpers.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com >
Cc: Brian Norris <computersforpeace@gmail.com >
Cc: Vikram Narayanan <vikram186@gmail.com >
Cc: Adrian Hunter <adrian.hunter@intel.com >
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-08-30 21:34:15 +01:00
Akinobu Mita
a995c79228
mtd: tests: rename sources in order to link a helper object
...
Each mtd test module have a single source whose name is the same as
the module name. In order to link a single object including helper
functions to every test module, this rename these sources to the
different names.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com >
Cc: Brian Norris <computersforpeace@gmail.com >
Cc: Vikram Narayanan <vikram186@gmail.com >
Cc: Adrian Hunter <adrian.hunter@intel.com >
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com >
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com >
2013-08-30 21:34:06 +01:00