mtd: nand: tango: Use nand_to_mtd() instead of directly accessing chip->mtd
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 21 Nov 2016 09:03:04 +0000 (10:03 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 21 Nov 2016 10:55:59 +0000 (11:55 +0100)
commit8fcfba072420518fda4b2fe00a3f3c9c3e2774e2
tree09628a41d1648e468e98c95b5caf0cd0a6583625
parent4d6aecfb7e26d2e8746e2eb1eab5e0fe378065ab
mtd: nand: tango: Use nand_to_mtd() instead of directly accessing chip->mtd

The nand_to_mtd() helper is here to hide internal mtd_info <-> nand_chip
association and ease future refactors.

Make use of this helper instead of directly accessing chip->mtd.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
drivers/mtd/nand/tango_nand.c