diff options
author | Patrick Delaunay | 2017-07-19 16:39:23 +0200 |
---|---|---|
committer | Marek Vasut | 2017-07-28 23:34:39 +0200 |
commit | 15970d871c299c8a4218911ee68edb0495a69cd4 (patch) | |
tree | f8f31f420ca9e3f4f1ec4be3cc568303c59f833d /include/dfu.h | |
parent | 4de512018ba7d57f1672be21c7459281f7c97514 (diff) |
dfu: remove limitation on partition size
Change long (32 bits on arm) to u64 (same type than offset)
for size and read offset r_left
So partition and device used for DFU can be greater than 4GB
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'include/dfu.h')
-rw-r--r-- | include/dfu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dfu.h b/include/dfu.h index 5b621b577b3..7e322d9d276 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -110,7 +110,7 @@ struct dfu_entity { struct sf_internal_data sf; } data; - int (*get_medium_size)(struct dfu_entity *dfu, long *size); + int (*get_medium_size)(struct dfu_entity *dfu, u64 *size); int (*read_medium)(struct dfu_entity *dfu, u64 offset, void *buf, long *len); @@ -132,7 +132,7 @@ struct dfu_entity { u8 *i_buf; u8 *i_buf_start; u8 *i_buf_end; - long r_left; + u64 r_left; long b_left; u32 bad_skip; /* for nand use */ |