mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 01:51:33 +00:00
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>
This commit is contained in:
parent
4afbef9672
commit
0800707b6d
1 changed files with 3 additions and 3 deletions
|
@ -529,9 +529,9 @@ mod_i2c_mem(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char *argv[])
|
||||||
}
|
}
|
||||||
} while (nbytes);
|
} while (nbytes);
|
||||||
|
|
||||||
chip = i2c_mm_last_chip;
|
i2c_mm_last_chip = chip;
|
||||||
addr = i2c_mm_last_addr;
|
i2c_mm_last_addr = addr;
|
||||||
alen = i2c_mm_last_alen;
|
i2c_mm_last_alen = alen;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue