mtd: peb: Add function to write file
This adds a function to the mtd peb API to write a file spanning multiple blocks to a mtd device. Bad blocks are automatically skipped and before anything is done we check if the image will fit into the remaining space (honouring bad blocks). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> |
---|
|
drivers/mtd/peb.c |
---|
include/mtd/mtd-peb.h |
---|