diff options
author | Marek BehĂșn <kabel@kernel.org> | 2024-08-29 10:08:47 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2024-09-03 14:24:32 +0200 |
commit | 1df8b54c1b3d623b3837ae53d8d06a6e144dc216 (patch) | |
tree | 14eb1348b8c2893948bab1d512fc8fc1435ec685 /board | |
parent | 1312faac5f52d27cfb45dfe1a5a93a2944ca5c21 (diff) | |
download | u-boot-1df8b54c1b3d623b3837ae53d8d06a6e144dc216.tar.gz u-boot-1df8b54c1b3d623b3837ae53d8d06a6e144dc216.tar.bz2 u-boot-1df8b54c1b3d623b3837ae53d8d06a6e144dc216.zip |
arm: mvebu: turris_omnia: Rename variable holding EEPROM udevice
Rename the variable holding the EEPROM udevice from `chip` to `eeprom`.
Signed-off-by: Marek BehĂșn <kabel@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/CZ.NIC/turris_omnia/turris_omnia.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c index 2f29d26edf..392df53a6d 100644 --- a/board/CZ.NIC/turris_omnia/turris_omnia.c +++ b/board/CZ.NIC/turris_omnia/turris_omnia.c @@ -464,16 +464,16 @@ static bool check_eeprom_crc(const void *buf, size_t size, u32 expected, static bool omnia_read_eeprom(struct omnia_eeprom *oep) { - struct udevice *chip; + struct udevice *eeprom; int ret; - chip = omnia_get_i2c_chip("EEPROM", OMNIA_I2C_EEPROM_CHIP_ADDR, - OMNIA_I2C_EEPROM_CHIP_LEN); + eeprom = omnia_get_i2c_chip("EEPROM", OMNIA_I2C_EEPROM_CHIP_ADDR, + OMNIA_I2C_EEPROM_CHIP_LEN); - if (!chip) + if (!eeprom) return false; - ret = dm_i2c_read(chip, 0, (void *)oep, sizeof(*oep)); + ret = dm_i2c_read(eeprom, 0, (void *)oep, sizeof(*oep)); if (ret) { printf("dm_i2c_read failed: %i, cannot read EEPROM\n", ret); return false; |