diff options
author | Josua Mayer <josua@solid-run.com> | 2023-05-05 11:20:46 +0300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2023-05-08 10:47:05 +0200 |
commit | dfda0c0140483260ccfc40f5f412238ee0bb90c5 (patch) | |
tree | c2c9ddd00858579f7c50e799097310413e74c172 /include/tlv_eeprom.h | |
parent | 1917a1a8a8bad28170cd464e5ea61ff0d738310b (diff) | |
download | u-boot-dfda0c0140483260ccfc40f5f412238ee0bb90c5.tar.gz |
cmd: tlv_eeprom: remove use of global variable current_dev
Make tlv_eeprom command device selection an explicit parameter of all
function calls.
Signed-off-by: Josua Mayer <josua@solid-run.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Baruch Siach <baruch@tkos.co.il>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include/tlv_eeprom.h')
-rw-r--r-- | include/tlv_eeprom.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tlv_eeprom.h b/include/tlv_eeprom.h index a2c333e7446..fd45e5f6ebb 100644 --- a/include/tlv_eeprom.h +++ b/include/tlv_eeprom.h @@ -84,11 +84,12 @@ int read_tlv_eeprom(void *eeprom, int offset, int len, int dev); * write_tlv_eeprom - Write the entire EEPROM binary data to the hardware * @eeprom: Pointer to buffer to hold the binary data * @len : Maximum size of buffer + * @dev : EEPROM device to write * * Note: this routine does not validate the EEPROM data. * */ -int write_tlv_eeprom(void *eeprom, int len); +int write_tlv_eeprom(void *eeprom, int len, int dev); /** * read_tlvinfo_tlv_eeprom - Read the TLV from EEPROM, and validate |