mtd: nand: fsmc: create and use mtd_to_fsmc()
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Thu, 10 Dec 2015 07:59:46 +0000 (08:59 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 18 Dec 2015 18:25:02 +0000 (10:25 -0800)
commit277af429fb40cf484c4a76c0b4cde2afc3e0c3d0
tree17836cebdd78324ba642f03d37daede4cddefa23
parentce7f28531fe05fcabc8ccff8b6dc9b4b296a811e
mtd: nand: fsmc: create and use mtd_to_fsmc()

Create and use mtd_to_fsmc() to avoid duplication of
container_of(mtd, struct fsmc_nand_data, mtd) calls.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/fsmc_nand.c