commit | 9344a81efb885cc0d5b29dd214df66e332aa0129 | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Mon Jun 06 10:48:47 2016 +0200 |
committer | Wolfram Sang <wsa@the-dreams.de> | Sun Jul 17 19:41:54 2016 +0200 |
tree | cf40b4bccc66144fbcb1d4ee7a86411aa0cf8864 | |
parent | 318aa9c66b337924f96caffab689553e1875aadf [diff] |
eeprom: at24: hide the read/write loop behind a macro Before splitting the read/write routines into smaller, more specialized functions, unduplicate some code in advance. Use a 'for' loop instead of 'do while' when waiting for the previous write to complete and hide it behind a macro. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>