From c712b2344e47101df11f46997508bf96b9f4e24e Mon Sep 17 00:00:00 2001 From: Joern Engel Date: Tue, 23 May 2006 19:53:16 +0200 Subject: s/oobblock/writesize/g Follow the kernel in the rename. Signed-off-by: Joern Engel --- flash_otp_write.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'flash_otp_write.c') 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) { -- cgit v1.2.3