i2c: fix eeprom command for 64bit architectures

BugzID: 58739
This commit is contained in:
Andrejs Cainikovs 2019-08-30 14:25:00 +02:00
parent 9dcd73013e
commit 90a8e14315
1 changed files with 2 additions and 2 deletions

View File

@ -206,10 +206,10 @@ int eeprom_write(unsigned dev_addr, unsigned offset,
return ret;
}
static int parse_numeric_param(char *str)
static ulong parse_numeric_param(char *str)
{
char *endptr;
int value = simple_strtol(str, &endptr, 16);
ulong value = simple_strtoul(str, &endptr, 16);
return (*endptr != '\0') ? -1 : value;
}