aboutsummaryrefslogtreecommitdiff
path: root/flash_otp_write.c
diff options
context:
space:
mode:
authorJoern Engel <joern@wh.fh-wedel.de>2006-05-23 19:53:16 +0200
committerJoern Engel <joern@wh.fh-wedel.de>2006-05-23 19:53:16 +0200
commitc712b2344e47101df11f46997508bf96b9f4e24e (patch)
treeeb7ae86d894680649cab648a9953992b6d5f6516 /flash_otp_write.c
parent2e987daadc3363f4162942c9ae3973da5d031ea3 (diff)
s/oobblock/writesize/g
Follow the kernel in the rename. Signed-off-by: Joern Engel <joern@wh.fh-wedel.de>
Diffstat (limited to 'flash_otp_write.c')
-rw-r--r--flash_otp_write.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/flash_otp_write.c b/flash_otp_write.c
index 71d3168..4cadcdf 100644
--- a/flash_otp_write.c
+++ b/flash_otp_write.c
@@ -59,7 +59,7 @@ int main(int argc,char *argv[])
printf("Writing OTP user data on %s at offset 0x%lx\n", argv[2], offset);
if (mtdInfo.type == MTD_NANDFLASH)
- len = mtdInfo.oobblock;
+ len = mtdInfo.writesize;
else
len = 256;
@@ -73,8 +73,8 @@ int main(int argc,char *argv[])
while (size > 0) {
if (mtdInfo.type == MTD_NANDFLASH) {
/* Fill remain buffers with 0xff */
- memset(buf + size, 0xff, mtdInfo.oobblock - size);
- size = mtdInfo.oobblock;
+ memset(buf + size, 0xff, mtdInfo.writesize - size);
+ size = mtdInfo.writesize;
}
ret = write(fd, p, size);
if (ret < 0) {