diff options
| author | AKASHI Takahiro <[email protected]> | 2020-10-29 13:47:42 +0900 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2020-10-30 14:20:27 +0100 |
| commit | 1c2d1293f608a367488b5dea7250dda8bb8f1d02 (patch) | |
| tree | 075d0eaa5c1dd2683c8e2ecb796f6c2f777aebea /common | |
| parent | 045fd8b13dc7b08a309043c28fc764c8fd2fde14 (diff) | |
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 <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'common')
| -rw-r--r-- | common/update.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/update.c b/common/update.c index 39946776d74..8dd6ee8b7dd 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) |
