Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 29f1058a authored by Boris Brezillon's avatar Boris Brezillon Committed by Brian Norris
Browse files

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: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Suggested-by: default avatarPriit Laes <plaes@plaes.org>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent f5b8aa78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment