]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e52781f6f4d383c5a00da8994aa89d8e677c507
tree203bf30d13f8605d1a7cfc3f9b3d50607ac1b6ca
parent86739f4066e36c293f3440662394b7c68452b740
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