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>
1 parent 81937bf commit c74930f7bd2189a4f2ebcd05c9803307a9e6652f
@Sascha Hauer Sascha Hauer authored on 28 Aug 2019
Showing 2 changed files
View
drivers/mtd/peb.c
View
include/mtd/mtd-peb.h