From: Peter Tyser Date: Fri, 15 Aug 2008 14:36:32 -0500 Subject: [U-Boot] [PATCH] mod_i2c_mem() bugfix In-Reply-To: <> References: <> Message-ID: <1218828992-29238-1-git-send-email-ptyser@xes-inc.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The last used chip, address, and address length were not being stored for the imm and imn commands. Signed-off-by: Peter Tyser --- common/cmd_i2c.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) 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; } -- 1.5.4.3