]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: add a helper to detect the nand type
authorHuang Shijie <b32955@freescale.com>
Wed, 25 Sep 2013 06:58:17 +0000 (14:58 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Sun, 27 Oct 2013 23:27:06 +0000 (16:27 -0700)
commitd1103b8dac9ebf626e81345a18db7ce38d0b147c
tree9d3d864da226e7068ece1b88ccf8b51b9fb25e4d
parent0237a4a41504d820d1cdf1d3835b0d3a096440f3
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>
drivers/mtd/inftlcore.c
drivers/mtd/nftlcore.c
drivers/mtd/ssfdc.c
drivers/mtd/tests/nandbiterrs.c
drivers/mtd/tests/oobtest.c
drivers/mtd/tests/pagetest.c
drivers/mtd/tests/subpagetest.c
include/linux/mtd/mtd.h