]> 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)
commite440c92373414d3b53b9cc0d28a61043b41ed8be
tree17836cebdd78324ba642f03d37daede4cddefa23
parentf5736e979b808ecdfa01035525bc7b629ef6c2e7
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