]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: jz4780: Use mtd_set_ooblayout() to set the ooblayout
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 2 May 2017 10:29:13 +0000 (12:29 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 15 May 2017 10:00:36 +0000 (12:00 +0200)
commit0b2f93dc0099e3b8a739b8918eeb995e12520940
treecb99ddcfd6635ff2adc8e8dafccd32e2428ae256
parent6f9ad5f360e865cba263109cb186cb2e16dbdc8d
mtd: nand: jz4780: Use mtd_set_ooblayout() to set the ooblayout

The mtd_set_ooblayout() accesor has been added to hide internals of
mtd_info and ease future refactoring. Call mtd_set_ooblayout() instead of
directly accessing mtd->ooblayout.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Harvey Hunt <harveyhuntnexus@gmail.com>
drivers/mtd/nand/jz4780_nand.c