summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/pasemi_nand.c
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2015-12-10 09:00:33 +0100
committerBrian Norris <computersforpeace@gmail.com>2015-12-18 22:19:10 +0100
commit2d3b77bac34bf99d7fdfd712ec2dc4317b3e850b (patch)
tree7ada5ca97a2cfefbe371232bee9decf3ca62448d /drivers/mtd/nand/pasemi_nand.c
parentmtd: nand: denali: use the mtd instance embedded in struct nand_chip (diff)
downloadlinux-2d3b77bac34bf99d7fdfd712ec2dc4317b3e850b.tar.xz
linux-2d3b77bac34bf99d7fdfd712ec2dc4317b3e850b.zip
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>
Diffstat (limited to 'drivers/mtd/nand/pasemi_nand.c')
0 files changed, 0 insertions, 0 deletions