]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited3ef86e47b465ddf6140d1a4b4e26b9d717c893
tree6adaf011cf01e43273cf1b70f82ed12812182fc5
parentde4a613d5134001bf56099cb391b254309effba1
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