]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: use mtd_ooblayout_xxx() helpers where appropriate
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 3 Feb 2016 19:10:30 +0000 (20:10 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:48 +0000 (22:05 +0200)
commit0b2cd75ca30fa35dbda775343c03f693eaf47a56
treef081d486a41dd07ef22f37c4492367a71b704199
parented3ef86e47b465ddf6140d1a4b4e26b9d717c893
mtd: 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/mtdchar.c