mtd: nand: qcom: use mtd_ooblayout_xxx() helpers where appropriate
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 18 Mar 2016 16:53:31 +0000 (17:53 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:52 +0000 (22:05 +0200)
commitaa02fcf555c8d42836584783288b33a2a0d40481
tree203bf30d13f8605d1a7cfc3f9b3d50607ac1b6ca
parent8cfc1e8b68f3e0b144f17a94709c757c6db05b82
mtd: nand: qcom: use mtd_ooblayout_xxx() helpers where appropriate

The mtd_ooblayout_xxx() helper functions have been added to avoid direct
accesses to ecclayout fields, 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>
Tested-by: Archit Taneja <architt@codeaurora.org>
drivers/mtd/nand/qcom_nandc.c