mtd: peb: Add function to skip bad blocks
This adds a function that given a pointer to a PEB number increases the
number until the corresponding PEB is good. It also checks for the PEB
number being inside the mtd device.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1b6253a commit eaa3484ad66da8912e19fa5a4bdceea86dddc4d4
@Sascha Hauer Sascha Hauer authored on 28 Jan 2019
Showing 2 changed files
View
drivers/mtd/peb.c
View
include/mtd/mtd-peb.h