drivers/flash: Move write_block_size into flash_parameters

With addition of flash_parameters structure, and supporting API call
to retrieve it, it is no longer needed to store write_block_size as
a part of flash_driver_api and it should be part of flash_parameters.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
This commit is contained in:
Dominik Ermel 2020-06-03 18:33:09 +00:00 committed by Carles Cufí
commit 609b645ac7
15 changed files with 35 additions and 35 deletions

View file

@ -215,7 +215,7 @@ int stream_flash_init(struct stream_flash_ctx *ctx, struct device *fdev,
}
if ((offset + size) > total_size ||
offset % api->write_block_size) {
offset % flash_get_write_block_size(fdev)) {
LOG_ERR("Incorrect parameter");
return -EFAULT;
}