mtd: nand: Get rid of the mtd parameter in all auto-detection functions
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 24 May 2016 14:56:22 +0000 (16:56 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 8 Mar 2017 22:21:15 +0000 (23:21 +0100)
commitcbe435a182d15d82a10a6b56a96406d957ceb35c
tree3f76ad0322e1382feb3a5e189ea464b689ad10ce
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
mtd: nand: Get rid of the mtd parameter in all auto-detection functions

Now that struct nand_chip embeds an mtd_info object we can get rid of the
mtd parameter and extract it from the chip parameter with the nand_to_mtd()
helper.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
drivers/mtd/nand/nand_base.c