]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: split ONFI detection logic to its own function
authorFlorian Fainelli <ffainelli@freebox.fr>
Wed, 1 Sep 2010 20:28:59 +0000 (22:28 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 24 Oct 2010 22:46:52 +0000 (23:46 +0100)
commit959d29915b08726a5c6bb039ddc7e106c9285868
tree10d813ba68b42b1b0f96a3ebe7281114760260d7
parent9a530435549a36bfaa97726d72128a6ea6152d5c
mtd: nand: split ONFI detection logic to its own function

In order to reduce the indentation and improve the readability of nand_get_
flash_type, split the ONFI detection logic to its own function. The detection
logic inside nand_flash_detect_onfi is also rewritten to allow for less
indentation.

Signed-off-by: Florian Fainelli <ffainelli@freebox.fr>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c