diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2017-10-30 14:48:32 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2017-11-13 21:39:18 +0100 |
commit | 9eaa903c06f9f3129f862ef60ce106e4c3211288 (patch) | |
tree | 3baaa770c2f382c2ac97a18ef848a338f537d745 /drivers/mtd/mtdpart.c | |
parent | 55100cfa339db9c391f8c4667af02a6f7160125b (diff) | |
download | blackbird-op-linux-9eaa903c06f9f3129f862ef60ce106e4c3211288.tar.gz blackbird-op-linux-9eaa903c06f9f3129f862ef60ce106e4c3211288.zip |
mtd: implement mtd_get_unmapped_area() using the point method
The mtd->_point method is a superset of mtd->_get_unmapped_area.
Especially in the NOR flash case, the point method ensures the flash
memory is in array (data) mode and that it will stay that way which
is precisely what callers of mtd_get_unmapped_area() would expect.
Implement mtd_get_unmapped_area() in terms of mtd->_point now that all
drivers that provided a _get_unmapped_area method also have the _point
method implemented.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Richard Weinberger <richard@nod.at>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/mtdpart.c')
0 files changed, 0 insertions, 0 deletions