commit | 7a237213532479ecab381228cb3c9d728d6a5541 | [log] [tgz] |
---|---|---|
author | Marek Vasut <marex@denx.de> | Tue Nov 10 20:53:30 2015 +0100 |
committer | Tom Rini <trini@konsulko.com> | Sat Nov 21 21:50:25 2015 -0500 |
tree | 809c2ca0c648f119a14b27252552334ea2b8f323 | |
parent | d062c48183ffc60b16d9b8e17ead8166d68763a3 [diff] |
eeprom: Pull out the RW loop Unify the code for doing read/write into single function, since the code for both the read and write is almost identical. This again trims down the code duplication. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>