diff options
author | Tom Rini <trini@konsulko.com> | 2020-05-29 23:54:01 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-29 23:54:01 -0400 |
commit | 29b0540d5acc35c8096d7147d7574d0b3ae7dcc0 (patch) | |
tree | 6db3ed3db2915a836f446f1adcf482146792338e /drivers/i2c/i2c-uclass.c | |
parent | 606cced58bf44bdf640760711be40d15a169aa71 (diff) | |
parent | b24dc83f156604f253ef6521776444188c5bff9b (diff) |
Merge tag 'bugfixes-for-v2020.07-rc4' of https://gitlab.denx.de/u-boot/custodians/u-boot-i2c
i2c changes for v2020.07-rc4
- fix eeprom issue with AT24MAC402 (address != 0)
- fix in i2c-uclass.c when compiling compiling with -Wtype-limits
- designware_i2c: small fixes:
- check if the device is powered
- tidy up use of NULL priv
Diffstat (limited to 'drivers/i2c/i2c-uclass.c')
-rw-r--r-- | drivers/i2c/i2c-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-uclass.c b/drivers/i2c/i2c-uclass.c index 8166df7ba6..8bc69e870f 100644 --- a/drivers/i2c/i2c-uclass.c +++ b/drivers/i2c/i2c-uclass.c @@ -516,7 +516,7 @@ int i2c_deblock_gpio_loop(struct gpio_desc *sda_pin, udelay(delay); /* Toggle SCL until slave release SDA */ - while (scl_count-- >= 0) { + for (; scl_count; --scl_count) { i2c_gpio_set_pin(scl_pin, 1); udelay(delay); i2c_gpio_set_pin(scl_pin, 0); |