Heinrich Schuchardt
da585c3c68
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: 1f746a2c82
("i2c: Make deblock delay and SCL clock configurable")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de >
2020-05-28 05:52:46 +02:00
..
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-01-27 07:22:41 +01:00
2020-02-05 19:33:46 -07:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2018-05-07 09:34:12 -04:00
2020-05-18 21:19:23 -04:00
2018-05-07 09:34:12 -04:00
2020-05-18 21:19:18 -04:00
2020-05-28 05:50:47 +02:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:23 -04:00
2020-05-28 05:52:46 +02:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2020-04-20 06:52:28 +02:00
2020-04-20 06:52:28 +02:00
2020-05-15 14:47:35 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2020-04-20 06:52:28 +02:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2018-05-07 09:34:12 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-01-27 07:23:26 +01:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2018-05-07 09:34:12 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-02-05 19:33:46 -07:00