summaryrefslogtreecommitdiff
path: root/drivers/dfu/dfu_nand.c
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2017-07-19 16:39:23 +0200
committerMarek Vasut <marex@denx.de>2017-07-28 23:34:39 +0200
commit15970d871c299c8a4218911ee68edb0495a69cd4 (patch)
treef8f31f420ca9e3f4f1ec4be3cc568303c59f833d /drivers/dfu/dfu_nand.c
parent4de512018ba7d57f1672be21c7459281f7c97514 (diff)
downloadu-boot-15970d871c299c8a4218911ee68edb0495a69cd4.tar.gz
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 'drivers/dfu/dfu_nand.c')
-rw-r--r--drivers/dfu/dfu_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dfu/dfu_nand.c b/drivers/dfu/dfu_nand.c
index ed4ceb7a07..6dc9ff7aea 100644
--- a/drivers/dfu/dfu_nand.c
+++ b/drivers/dfu/dfu_nand.c
@@ -114,7 +114,7 @@ static int dfu_write_medium_nand(struct dfu_entity *dfu,
return ret;
}
-int dfu_get_medium_size_nand(struct dfu_entity *dfu, long *size)
+int dfu_get_medium_size_nand(struct dfu_entity *dfu, u64 *size)
{
*size = dfu->data.nand.size;