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:
parent
076282a117
commit
609b645ac7
15 changed files with 35 additions and 35 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue