]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: core: use mtd_ooblayout_xxx() helpers where appropriate
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 3 Feb 2016 19:11:00 +0000 (20:11 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:49 +0000 (22:05 +0200)
commit83ab2aa0f48c5b934c06150424c331fd6310e6fb
tree0685f3a10994d7203d49b3d3ca9479cc4cda838a
parentda0910322cde61d19b6b2a6f0d743fe81755dd58
mtd: nand: core: use mtd_ooblayout_xxx() helpers where appropriate

The mtd_ooblayout_xxx() helper functions have been added to avoid direct
accesses to the ecclayout field, and thus ease for future reworks.
Use these helpers in all places where the oobfree[] and eccpos[] arrays
where directly accessed.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_bch.c