]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: atmel: use mtd_ooblayout_xxx() helpers where appropriate
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 3 Feb 2016 19:11:14 +0000 (20:11 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:49 +0000 (22:05 +0200)
commitb73afe790dc23cc8663db479d43580ae3e450c2d
treee2dee2e1186735d8be0fa8bd3366d0a1ae68d2a6
parent7660cf0e9c9c883a3dac061d2e895b0920ced1ee
mtd: nand: atmel: 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>
Reviewed-by: Nicolas Ferre <nicolas.ferre@atmel.com>
drivers/mtd/nand/atmel_nand.c