cmd: nand: abstract global variable usage for dm conversion
authorMugunthan V N <mugunthanvnm@ti.com>
Tue, 27 Jun 2017 00:12:51 +0000 (19:12 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 12 Jul 2017 02:41:44 +0000 (22:41 -0400)
commitad92dff28c26b127391692e4d675a463ee4a4215
treece21b53edc58c4fe55c24cac4e11fcef6bb94927
parent8d3a25685e4aac7070365a2b3c53c2c81b27930f
cmd: nand: abstract global variable usage for dm conversion

nand_info is used all over the file so abstract it with
get_nand_dev_by_index() which will help for DM conversion.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
cmd/nand.c
drivers/mtd/nand/nand.c
drivers/mtd/nand/omap_gpmc.c
include/nand.h