diff options
author | Peter Tyser | 2008-08-15 14:36:32 -0500 |
---|---|---|
committer | Wolfgang Denk | 2008-08-21 01:35:09 +0200 |
commit | 0800707b6d5041a840a65d556032c15c584b55f8 (patch) | |
tree | 626e4a9c0e03aef63af2f68e64be991568e77e0e /common | |
parent | 4afbef967275b2f636abae86f91b81becee7ad03 (diff) |
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 <ptyser@xes-inc.com>
Diffstat (limited to 'common')
-rw-r--r-- | 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 aac7e9a6c5b..91bf25b6b31 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; } |