mod_i2c_mem() bugfix
PATCH 1/1 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 <[email protected]>
--- common/cmd_i2c.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
common/cmd_i2c.c +3 -3
@@ -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 ; }
Signature · 1 line
1.5.4.3
Wolfgang Denk
AppliedPATCH 1/1 mod_i2c_mem() bugfix
Dear Peter Tyser,
Quoted 7 lines · In message <[email protected]> you wrote:
The last used chip, address, and address length were not being stored for the imm and imn commands.
Signed-off-by Peter Tyser <[email protected]>--- common/cmd_i2c.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Do we define evil as the absence of goodness? It seems only logical
that shit happens--we discover this by the process of elimination."
-- Larry Wall