mtd/include/linux/mtd cfi.h,1.33,1.34
David Woodhouse
dwmw2 at infradead.org
Fri May 16 14:55:46 EDT 2003
Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv793
Modified Files:
cfi.h
Log Message:
Fix map_read/write calls
Index: cfi.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/cfi.h,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- cfi.h 14 May 2003 15:05:17 -0000 1.33
+++ cfi.h 16 May 2003 18:55:44 -0000 1.34
@@ -387,13 +387,13 @@
static inline cfi_word cfi_read(struct map_info *map, __u32 addr)
{
if (cfi_buswidth_is_1()) {
- return map->read8(map, addr);
+ return map_read8(map, addr);
} else if (cfi_buswidth_is_2()) {
- return map->read16(map, addr);
+ return map_read16(map, addr);
} else if (cfi_buswidth_is_4()) {
- return map->read32(map, addr);
+ return map_read32(map, addr);
} else if (cfi_buswidth_is_8()) {
- return map->read64(map, addr);
+ return map_read64(map, addr);
} else {
return 0;
}
@@ -406,13 +406,13 @@
static inline void cfi_write(struct map_info *map, cfi_word val, __u32 addr)
{
if (cfi_buswidth_is_1()) {
- map->write8(map, val, addr);
+ map_write8(map, val, addr);
} else if (cfi_buswidth_is_2()) {
- map->write16(map, val, addr);
+ map_write16(map, val, addr);
} else if (cfi_buswidth_is_4()) {
- map->write32(map, val, addr);
+ map_write32(map, val, addr);
} else if (cfi_buswidth_is_8()) {
- map->write64(map, val, addr);
+ map_write64(map, val, addr);
}
}
@@ -443,13 +443,13 @@
static inline __u8 cfi_read_query(struct map_info *map, __u32 addr)
{
if (cfi_buswidth_is_1()) {
- return map->read8(map, addr);
+ return map_read8(map, addr);
} else if (cfi_buswidth_is_2()) {
- return cfi16_to_cpu(map->read16(map, addr));
+ return cfi16_to_cpu(map_read16(map, addr));
} else if (cfi_buswidth_is_4()) {
- return cfi32_to_cpu(map->read32(map, addr));
+ return cfi32_to_cpu(map_read32(map, addr));
} else if (cfi_buswidth_is_8()) {
- return cfi64_to_cpu(map->read64(map, addr));
+ return cfi64_to_cpu(map_read64(map, addr));
} else {
return 0;
}
More information about the linux-mtd-cvs
mailing list