[U-Boot] cmd_eeprom: fix i2c_{read|write} usage if env is in I2C EEPROM

Heiko Schocher hs at denx.de
Wed Nov 13 07:37:11 CET 2013


Hello Alexey,

Am 07.11.2013 14:51, schrieb Alexey Brodkin:
> Data "offset" is not used directly in case of I2C EEPROM. Istead it is
> split into "block number" and "offset within mentioned block". Which are
> "addr[0]" and "addr[1]" respectively.
>
> Signed-off-by: Alexey Brodkin<abrodkin at synopsys.com>
>
> Cc: Jean-Christophe PLAGNIOL-VILLARD<plagnioj at jcrosoft.com>
> cc: Peter Tyser<ptyser at xes-inc.com>
> Cc: Heiko Schocher<hs at denx.de>
> Cc: Wolfgang Denk<wd at denx.de>
> Cc: Stefan Roese<sr at denx.de>
> Cc: Mischa Jonker<mjonker at synopsys.com>
>
> ---
> common/cmd_eeprom.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)

Thanks!

Apllied to u-boot-i2c.git

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list