提交 0800707b 编写于 作者: P Peter Tyser 提交者: Wolfgang Denk

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: NPeter Tyser <ptyser@xes-inc.com>
上级 4afbef96
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册