Fix flash interface vt calls

Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/8e08f3ea
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/8e08f3ea
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/8e08f3ea

Branch: refs/heads/develop
Commit: 8e08f3ea56c4a4d41a9419e0c908a0b1d8d8ce76
Parents: 1210b3e
Author: Fabio Utzig <[email protected]>
Authored: Thu Jan 19 08:06:39 2017 -0200
Committer: Fabio Utzig <[email protected]>
Committed: Fri Jan 20 07:27:40 2017 -0200

----------------------------------------------------------------------
 fs/nffs/src/nffs_misc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/8e08f3ea/fs/nffs/src/nffs_misc.c
----------------------------------------------------------------------
diff --git a/fs/nffs/src/nffs_misc.c b/fs/nffs/src/nffs_misc.c
index 168749e..f79d9df 100644
--- a/fs/nffs/src/nffs_misc.c
+++ b/fs/nffs/src/nffs_misc.c
@@ -473,7 +473,7 @@ nffs_misc_desc_from_flash_area(int id, int *cnt, struct 
nffs_area_desc *nad)
 
     hf = hal_bsp_flash_dev(fa->fa_device_id);
     for (i = 0; i < hf->hf_sector_cnt; i++) {
-        hf->hf_itf->hff_sector_info(i, &start, &size);
+        hf->hf_itf->hff_sector_info(hf, i, &start, &size);
         if (start >= fa->fa_off && start < fa->fa_off + fa->fa_size) {
             if (first_idx == -1) {
                 first_idx = i;
@@ -491,7 +491,7 @@ nffs_misc_desc_from_flash_area(int id, int *cnt, struct 
nffs_area_desc *nad)
 
     move_on = 1;
     for (i = first_idx, j = 0; i < last_idx + 1; i++) {
-        hf->hf_itf->hff_sector_info(i, &start, &size);
+        hf->hf_itf->hff_sector_info(hf, i, &start, &size);
         if (move_on) {
             nad[j].nad_flash_id = fa->fa_device_id;
             nad[j].nad_offset = start;

Reply via email to