aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/i2c/i2c-smbus.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2016-07-17 20:40:06 +0200
committerWolfram Sang <wsa@the-dreams.de>2016-07-18 20:07:54 +0200
commit24da3cc0e25f48e12656226e5ed313573a3b443f (patch)
tree5ad5a9441d18e625b54678481c3ad80740c9d7d2 /drivers/i2c/i2c-smbus.c
parenteeprom: at24: add support for at24mac series (diff)
downloadwireguard-linux-24da3cc0e25f48e12656226e5ed313573a3b443f.tar.xz
wireguard-linux-24da3cc0e25f48e12656226e5ed313573a3b443f.zip
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>
Diffstat (limited to 'drivers/i2c/i2c-smbus.c')
0 files changed, 0 insertions, 0 deletions