summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2016-06-06 10:48:47 +0200
committerWolfram Sang <wsa@the-dreams.de>2016-07-17 19:41:54 +0200
commit9344a81efb885cc0d5b29dd214df66e332aa0129 (patch)
treecf40b4bccc66144fbcb1d4ee7a86411aa0cf8864 /block
parent318aa9c66b337924f96caffab689553e1875aadf (diff)
downloadop-kernel-dev-9344a81efb885cc0d5b29dd214df66e332aa0129.zip
op-kernel-dev-9344a81efb885cc0d5b29dd214df66e332aa0129.tar.gz
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 'block')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud