projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4afbef9
)
mod_i2c_mem() bugfix
author
Peter Tyser
<ptyser@xes-inc.com>
Fri, 15 Aug 2008 19:36:32 +0000
(14:36 -0500)
committer
Wolfgang Denk
<wd@denx.de>
Wed, 20 Aug 2008 23:35:09 +0000
(
01:35
+0200)
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>
common/cmd_i2c.c
patch
|
blob
|
history
diff --git
a/common/cmd_i2c.c
b/common/cmd_i2c.c
index aac7e9a6c5be9f2d97409bd8d14892475fed6ec6..91bf25b6b312685ce3a6249b7bcfe407fe2cef5d 100644
(file)
--- 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;
}