diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2020-10-29 13:47:42 +0900 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-10-30 14:20:27 +0100 |
commit | 1c2d1293f608a367488b5dea7250dda8bb8f1d02 (patch) | |
tree | 075d0eaa5c1dd2683c8e2ecb796f6c2f777aebea /include | |
parent | 045fd8b13dc7b08a309043c28fc764c8fd2fde14 (diff) | |
download | u-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 'include')
-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 a4cd86c..d3d7e07 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -507,10 +507,10 @@ static inline int dfu_fill_entity_virt(struct dfu_entity *dfu, char *devstr, * Return: 0 - on success, error code - otherwise */ #if CONFIG_IS_ENABLED(DFU_WRITE_ALT) -int dfu_write_by_name(char *dfu_entity_name, unsigned int addr, +int dfu_write_by_name(char *dfu_entity_name, void *addr, unsigned int len, char *interface, char *devstring); #else -static inline int dfu_write_by_name(char *dfu_entity_name, unsigned int addr, +static inline int dfu_write_by_name(char *dfu_entity_name, void *addr, unsigned int len, char *interface, char *devstring) { |