]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: turris_omnia: Rename variable holding EEPROM udevice
authorMarek Behún <kabel@kernel.org>
Thu, 29 Aug 2024 08:08:47 +0000 (10:08 +0200)
committerStefan Roese <sr@denx.de>
Tue, 3 Sep 2024 12:24:32 +0000 (14:24 +0200)
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>
board/CZ.NIC/turris_omnia/turris_omnia.c

index 2f29d26edf897e93693e55d70eaacef6373583fa..392df53a6d80ced454c40f63d3df8aef098386d8 100644 (file)
@@ -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;