]> git.dujemihanovic.xyz Git - u-boot.git/commit
eeprom: Pull out address computation
authorMarek Vasut <marex@denx.de>
Tue, 10 Nov 2015 19:53:24 +0000 (20:53 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 22 Nov 2015 02:50:23 +0000 (21:50 -0500)
commit02c321cf88c14f330e696830554739d745bb359d
tree4e70c47da0ad1eb33162a06fcb55764ea9adbfc0
parent9132088b00b6ba4d57536f2a3895ee71f28509d0
eeprom: Pull out address computation

Pull out the code computing the EEPROM address into separate function
so that it's not duplicated.

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