]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: embed an mtd_info structure into nand_chip
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Tue, 1 Dec 2015 11:03:06 +0000 (12:03 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 8 Dec 2015 20:25:20 +0000 (12:25 -0800)
commit4dbb6dc5bee187f87c2c6e36c21da4b79a1fe505
treeca59c0859970bcb007bacd64474379ca926dae75
parentefe302c74de067b91f3fde23715a14aa0a7c0c91
mtd: nand: embed an mtd_info structure into nand_chip

Currently all NAND controller drivers are providing both the mtd_info and
nand_chip struct and then let the NAND subsystem to initialize a few
things before registering the mtd instance to the MTD layer.
Embed an mtd_info field into nand_chip to add some consistency to all NAND
controller drivers.
This change will also help factorizing boilerplate code copied in all NAND
drivers.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
include/linux/mtd/nand.h