mtd: add mtd_ooblayout_xxx() helper functions
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 4 Feb 2016 08:52:30 +0000 (09:52 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:47 +0000 (22:05 +0200)
commit75eb2cec251fda33c9bb716ecc372819abb9278a
tree6adaf011cf01e43273cf1b70f82ed12812182fc5
parentc4f3ef2c6c219c3e58e0f5a9589a67685a75d787
mtd: add mtd_ooblayout_xxx() helper functions

In order to make the ecclayout definition completely dynamic we need to
rework the way the OOB layout are defined and iterated.

Create a few mtd_ooblayout_xxx() helpers to ease OOB bytes manipulation
and hide ecclayout internals to their users.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/mtdcore.c
include/linux/mtd/mtd.h