mtd/drivers/mtd/chips jedec_probe.c,1.24,1.25
Thayne Harbaugh
tharbaugh at lnxi.com
Fri Apr 18 12:01:00 EDT 2003
Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv2902
Modified Files:
jedec_probe.c
Log Message:
Fix various typos, code tidy
Index: jedec_probe.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/jedec_probe.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- jedec_probe.c 11 Apr 2003 15:08:26 -0000 1.24
+++ jedec_probe.c 18 Apr 2003 16:00:57 -0000 1.25
@@ -170,7 +170,7 @@
* MTD_UADDR_NOT_SUPPORTED must be 0 and the first entry here
* must go unused.
*/
-static struct unlock_addr unlock_addrs[] = {
+static const struct unlock_addr unlock_addrs[] = {
[MTD_UADDR_NOT_SUPPORTED] = {
.addr1 = 0xffff,
.addr2 = 0xffff
@@ -230,7 +230,7 @@
/*
* Please keep this list ordered by manufacturer!
* Fortunately, the list isn't searched often and so a
- * sloppy, linear search isn't so bad.
+ * slow, linear search isn't so bad.
*/
static const struct amd_flash_info jedec_table[] = {
{
@@ -922,7 +922,7 @@
}, {
mfr_id: MANUFACTURER_PMC,
dev_id: PM49FL002,
- name: "PMC_Pm49FL002",
+ name: "PMC Pm49FL002",
uaddr: {[0] = MTD_UADDR_0x5555_0x2AAA}, /* x8 */
DevSize: SIZE_256KiB,
CmdSet: P_ID_AMD_STD,
@@ -933,7 +933,7 @@
}, {
mfr_id: MANUFACTURER_PMC,
dev_id: PM49FL004,
- name: "PMC_Pm49FL004",
+ name: "PMC Pm49FL004",
uaddr: {[0] = MTD_UADDR_0x5555_0x2AAA}, /* x8 */
DevSize: SIZE_512KiB,
CmdSet: P_ID_AMD_STD,
@@ -944,7 +944,7 @@
}, {
mfr_id: MANUFACTURER_PMC,
dev_id: PM49FL008,
- name: "PMC_Pm49FL008",
+ name: "PMC Pm49FL008",
uaddr: {[0] = MTD_UADDR_0x5555_0x2AAA}, /* x8 */
DevSize: SIZE_1MiB,
CmdSet: P_ID_AMD_STD,
@@ -1452,8 +1452,7 @@
if ( jedec_match( base, map, cfi, &jedec_table[i] ) ) {
DEBUG( MTD_DEBUG_LEVEL3,
"MTD %s(): matched device 0x%x,0x%x unlock_addrs: 0x%.4x 0x%.4x\n",
- __func__,
- cfi->mfr, cfi->id,
+ __func__, cfi->mfr, cfi->id,
cfi->addr_unlock1, cfi->addr_unlock2 );
if (!cfi_jedec_setup(cfi, i))
return 0;
More information about the linux-mtd-cvs
mailing list