]> git.ipfire.org Git - people/ms/u-boot.git/commit
mtd: add mtd_ooblayout_xxx() helper functions
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 21 Nov 2017 17:38:23 +0000 (02:38 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 28 Nov 2017 15:28:58 +0000 (00:28 +0900)
commit13f3b04f61aa6a0ec61bf01bb404f21c10b48bd0
tree11f3cbb52d2c96b8418cb87bf3a44ca53d0119a6
parent1fb87de83dd6e76307e110100f265deb2d8d8163
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>
[Linux commit: 75eb2cec251fda33c9bb716ecc372819abb9278a]
[masahiro:
 cherry-pick more code from adbbc3bc827eb1f43a932d783f09ba55c8ec8379]
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mtd/mtdcore.c
include/linux/mtd/mtd.h