Bartosz Golaszewski 24da3cc0e2 eeprom: at24: tweak the loop_until_timeout() macro
loop_until_timeout() replaced a do {} while loop in the at24 driver
with a for loop which, under certain circumstances (such as heavy load
or low value of the write_timeout argument), can lead to the code in
the loop never being executed.

Make sure that at least one iteration of the code enclosed within
loop_until_timeout() is always executed.

Suggested-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2016-07-18 20:07:54 +02:00
..
2016-02-07 23:01:45 -08:00
2016-05-20 10:12:41 -07:00
2014-02-28 14:08:42 -08:00
2016-02-08 14:57:30 -08:00
2015-03-16 21:10:28 +01:00
2013-08-27 08:28:01 -07:00
2016-02-22 14:46:24 -08:00
2016-02-11 19:24:23 -08:00