]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: update mtd_to_nand()
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Thu, 10 Dec 2015 08:00:33 +0000 (09:00 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 18 Dec 2015 21:19:10 +0000 (13:19 -0800)
commit3c28371490dd7e43633345f9234a1060bf70fe62
tree7ada5ca97a2cfefbe371232bee9decf3ca62448d
parent2cd375093d2243866b977f5dfa6000d531482fc3
mtd: nand: update mtd_to_nand()

Now that all drivers are using the mtd instance embedded in the nand_chip
struct we can safely update the mtd_to_nand() implementation to use
the container_of macro instead of returning the content of mtd->priv.
This will allow us to remove mtd->priv = chip assignments done in all
NAND controller drivers.

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