mtd/drivers/mtd/chips cfi_cmdset_0001.c,1.164,1.165
Nicolas Pitre
nico at infradead.org
Fri Feb 4 21:06:18 EST 2005
Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv17011/drivers/mtd/chips
Modified Files:
cfi_cmdset_0001.c
Log Message:
add structure definition for OTP region info
Index: cfi_cmdset_0001.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0001.c,v
retrieving revision 1.164
retrieving revision 1.165
diff -u -r1.164 -r1.165
--- cfi_cmdset_0001.c 16 Nov 2004 18:29:00 -0000 1.164
+++ cfi_cmdset_0001.c 5 Feb 2005 02:06:15 -0000 1.165
@@ -256,7 +256,8 @@
int nb_parts, i;
/* Protection Register info */
- extra_size += (extp->NumProtectionFields - 1) * (4 + 6);
+ extra_size += (extp->NumProtectionFields - 1) *
+ sizeof(struct cfi_intelext_otpinfo);
/* Burst Read info */
extra_size += 6;
@@ -475,7 +476,8 @@
int offs, numregions, numparts, partshift, numvirtchips, i, j;
/* Protection Register info */
- offs = (extp->NumProtectionFields - 1) * (4 + 6);
+ offs = (extp->NumProtectionFields - 1) *
+ sizeof(struct cfi_intelext_otpinfo);
/* Burst Read info */
offs += 6;
More information about the linux-mtd-cvs
mailing list