summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2016-06-06 08:48:47 (GMT)
committerWolfram Sang <wsa@the-dreams.de>2016-07-17 17:41:54 (GMT)
commit9344a81efb885cc0d5b29dd214df66e332aa0129 (patch)
treecf40b4bccc66144fbcb1d4ee7a86411aa0cf8864 /samples
parent318aa9c66b337924f96caffab689553e1875aadf (diff)
downloadlinux-9344a81efb885cc0d5b29dd214df66e332aa0129.tar.xz
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions