From: Peter Tyser Date: Fri, 15 Aug 2008 19:36:32 +0000 (-0500) Subject: mod_i2c_mem() bugfix X-Git-Tag: v2008.10-rc1~143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0800707b6d5041a840a65d556032c15c584b55f8;p=platform%2Fkernel%2Fu-boot.git mod_i2c_mem() bugfix The last used chip, address, and address length were not being stored for the imm and imn commands. Signed-off-by: Peter Tyser --- diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c index aac7e9a..91bf25b 100644 --- a/common/cmd_i2c.c +++ b/common/cmd_i2c.c @@ -529,9 +529,9 @@ mod_i2c_mem(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char *argv[]) } } while (nbytes); - chip = i2c_mm_last_chip; - addr = i2c_mm_last_addr; - alen = i2c_mm_last_alen; + i2c_mm_last_chip = chip; + i2c_mm_last_addr = addr; + i2c_mm_last_alen = alen; return 0; }