mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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>
This commit is contained in:
committed by
Heinrich Schuchardt
parent
045fd8b13d
commit
1c2d1293f6
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user