]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb01670be3c54fa2ffaad0e64b7f495463fc4a7b2
tree17836cebdd78324ba642f03d37daede4cddefa23
parentd3b3ef8946567e80ff9d3dabd8dae6be59006392
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