diff options
author | Tom Rini <trini@konsulko.com> | 2024-06-07 10:48:41 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-06-07 10:48:41 -0600 |
commit | 77ba281c91c3578c835d11c0f2fe2cac6fa1d658 (patch) | |
tree | dbf0ff8a3b764fce3a7da1cbae20750d9d65d6af /common/eeprom/eeprom_field.c | |
parent | 227be29df37545f74243a98c12a4a33c4160e3cd (diff) | |
parent | 57a9e8d86fde5732f77577adf52dcb62fcdc068a (diff) |
Merge patch series "'eeprom' command improvements"
Marek BehĂșn <kabel@kernel.org> says:
This series contains improvements for the 'eeprom' command:
- refactors
- fixes
- improvements
- ability to use driver model EEPROMs (uclass UCLASS_I2C_EEPROM)
- more flexible EEPROM layout support
It should not cause any behavior change for any existing board.
This series is a dependency for some DDR issue fixes for Turris Omnia.
I will be sending that one separately.
github PR link (with CI):
https://github.com/u-boot/u-boot/pull/540
- there is a failure for
test.py for sandbox sandbox_clang
but it seems unrelated to these changes
Diffstat (limited to 'common/eeprom/eeprom_field.c')
-rw-r--r-- | common/eeprom/eeprom_field.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/eeprom/eeprom_field.c b/common/eeprom/eeprom_field.c index 3bacb1ae7eb..64b9db18c25 100644 --- a/common/eeprom/eeprom_field.c +++ b/common/eeprom/eeprom_field.c @@ -56,8 +56,8 @@ static int __eeprom_field_update_bin(struct eeprom_field *field, tmp[k] = value[reverse ? i - 1 + k : i + k]; } - byte = simple_strtoul(tmp, &endptr, 0); - if (*endptr != '\0' || byte < 0) + byte = simple_strtoul(tmp, &endptr, 16); + if (*endptr != '\0') return -1; field->buf[j] = byte; |