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> |
---|
|
drivers/mtd/peb.c |
---|
include/mtd/mtd-peb.h |
---|