]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4221fff2f18b3eed3b7c470fb527e8d0cd8e5a5
tree3f76ad0322e1382feb3a5e189ea464b689ad10ce
parent94e2a518d0ac4a168bccd1446b1a1407458c45bd
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