commit | f1524a25aaac0348db47994f5dd12de6f43203d9 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Sat May 09 18:20:18 2020 +0200 |
committer | Heiko Schocher <hs@denx.de> | Thu May 28 05:52:46 2020 +0200 |
tree | bc6aef5ae81511cba52577ff09f90b538cb62508 | |
parent | 057be516c136cc4d9599312535a32c0473e3ee81 [diff] |
i2c: observe scl_count in i2c_deblock_gpio_loop() When compiling with -Wtype-limits we see this error: drivers/i2c/i2c-uclass.c: In function ‘i2c_deblock_gpio_loop’: drivers/i2c/i2c-uclass.c:517:21: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits] 517 | while (scl_count-- >= 0) { | Don't loop forever. Fixes: 1f746a2c82b1 ("i2c: Make deblock delay and SCL clock configurable") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>