|
|
|
@ -26,8 +26,10 @@ static int stdio_flash_write(struct flash_dev *dev, uint32_t addr, |
|
|
|
|
static int stdio_flash_copy(struct flash_dev *dev, uint32_t dst, uint32_t src, |
|
|
|
|
size_t len); |
|
|
|
|
static int stdio_flash_erase(struct flash_dev *dev, uint32_t addr); |
|
|
|
|
static void stdio_flash_release(struct flash_dev *dev); |
|
|
|
|
|
|
|
|
|
static struct flash_ops stdio_flash_ops = { |
|
|
|
|
.release = stdio_flash_release, |
|
|
|
|
.get_size = stdio_flash_get_size, |
|
|
|
|
.read = stdio_flash_read, |
|
|
|
|
.write = stdio_flash_write, |
|
|
|
@ -150,7 +152,7 @@ err_free_dev: |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void flash_release(struct flash_dev *dev) |
|
|
|
|
static void stdio_flash_release(struct flash_dev *dev) |
|
|
|
|
{ |
|
|
|
|
struct stdio_flash_priv *priv; |
|
|
|
|
|
|
|
|
|