mtd: nand: omap2: use mtd_ooblayout_xxx() helpers where appropriate
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 3 Feb 2016 19:12:19 +0000 (20:12 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:51 +0000 (22:05 +0200)
commit8cfc1e8b68f3e0b144f17a94709c757c6db05b82
treec1f953e34173b0493cbdaf3564b1a907bef6d4bd
parentb9c0f65feab8a6dd4f37fdd8150cf5fe716304f5
mtd: nand: omap2: 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/omap2.c