]> git.ipfire.org Git - people/ms/u-boot.git/commit
eeprom: Pull out the I/O code
authorMarek Vasut <marex@denx.de>
Tue, 10 Nov 2015 19:53:23 +0000 (20:53 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 22 Nov 2015 02:50:22 +0000 (21:50 -0500)
commit9132088b00b6ba4d57536f2a3895ee71f28509d0
tree62bbed9cb9acbd9c7570b4827c7f1550789573ef
parent53a85ad79adb43fac2a57cfd241450a9d2f4ce42
eeprom: Pull out the I/O code

Pull out the code which does the I2C or SPI read/write, so that
the beefy ifdef around it is contained in a single function.

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>
common/cmd_eeprom.c