aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2020-10-29 13:47:42 +0900
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-10-30 14:20:27 +0100
commit1c2d1293f608a367488b5dea7250dda8bb8f1d02 (patch)
tree075d0eaa5c1dd2683c8e2ecb796f6c2f777aebea /common
parent045fd8b13dc7b08a309043c28fc764c8fd2fde14 (diff)
downloadu-boot-1c2d1293f608a367488b5dea7250dda8bb8f1d02.zip
u-boot-1c2d1293f608a367488b5dea7250dda8bb8f1d02.tar.gz
u-boot-1c2d1293f608a367488b5dea7250dda8bb8f1d02.tar.bz2
dfu: modify an argument type for an address
The range of an addressable pointer can go beyond 'integer'. So change the argument type to a void pointer. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common')
-rw-r--r--common/update.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/update.c b/common/update.c
index 3994677..8dd6ee8 100644
--- a/common/update.c
+++ b/common/update.c
@@ -324,7 +324,8 @@ got_update_file:
}
} else if (fit_image_check_type(fit, noffset,
IH_TYPE_FIRMWARE)) {
- ret = dfu_write_by_name(fit_image_name, update_addr,
+ ret = dfu_write_by_name(fit_image_name,
+ (void *)update_addr,
update_size, interface,
devstring);
if (ret)