]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_i2c.c
libfdt: Increase namespace-pollution paranoia
[karo-tx-uboot.git] / common / cmd_i2c.c
index aac7e9a6c5be9f2d97409bd8d14892475fed6ec6..91bf25b6b312685ce3a6249b7bcfe407fe2cef5d 100644 (file)
@@ -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;
 }