]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: onenand: use mtd_ooblayout_xxx() helpers where appropriate
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 3 Feb 2016 19:12:31 +0000 (20:12 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:52 +0000 (22:05 +0200)
commit9e6200226a2d1d56ae46a5e99b4ffc71a34b8ed0
tree914beeaf3d989f212a1425d515951bf7ed581275
parent2e52781f6f4d383c5a00da8994aa89d8e677c507
mtd: onenand: 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/onenand/onenand_base.c