]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: lpc32xx: use mtd_ooblayout_xxx() helpers where appropriate
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 3 Feb 2016 19:12:04 +0000 (20:12 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:51 +0000 (22:05 +0200)
commit2aba8af2c1283bc0782b0905c942d329e48dcd1c
tree2dfccc40624151793dbe1ab20c4c160dda96a8fe
parent6e961acf54bc76e12dd6cbddcc4772d6c8bbe9aa
mtd: nand: lpc32xx: 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/lpc32xx_slc.c