diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2016-03-07 10:46:52 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2016-03-08 01:23:09 +0100 |
commit | 29f1058a90b319b01c4cf469720e0350212d5c9c (patch) | |
tree | 6094d39b99c1cae2d98d0459778852d7043690e1 /include/clocksource | |
parent | mtd: kill the ecclayout->oobavail field (diff) | |
download | linux-29f1058a90b319b01c4cf469720e0350212d5c9c.tar.xz linux-29f1058a90b319b01c4cf469720e0350212d5c9c.zip |
mtd: create an mtd_oobavail() helper and make use of it
Currently, all MTD drivers/sublayers exposing an OOB area are
doing the same kind of test to extract the available OOB size
based on the mtd_info and mtd_oob_ops structures.
Move this common logic into an inline function and make use of it.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Suggested-by: Priit Laes <plaes@plaes.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/clocksource')
0 files changed, 0 insertions, 0 deletions