]> git.dujemihanovic.xyz Git - u-boot.git/commit
common: eeprom_field: Fix updating binary field
authorMarek Behún <kabel@kernel.org>
Tue, 21 May 2024 07:13:27 +0000 (09:13 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 7 Jun 2024 16:47:59 +0000 (10:47 -0600)
commit96dfa5869da586eb1c8d84c22164a2bf399968a1
tree3dcf8ba1445956b67c9f7402dee7ddcb4cfbf64c
parent15378a3fe1838a3c5abf2330a6eb4e92462783c1
common: eeprom_field: Fix updating binary field

The __eeprom_field_update_bin() function is expected to parse a hex
string into bytes (potentially in reverse order), but the
simple_strtoul() function is given 0 as base. This does not work since
the string does not contain '0x' prefix. Add explicit base 16.

Signed-off-by: Marek Behún <kabel@kernel.org>
common/eeprom/eeprom_field.c