summaryrefslogtreecommitdiff
path: root/yaffs_mtdif2_single.c
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2010-11-02 15:16:48 +1300
committerCharles Manning <cdhmanning@gmail.com>2010-11-02 15:16:48 +1300
commit757a553001be4016e9c5d8880648d3703f34b10e (patch)
tree36d0c4b5af991bab33a848e552e46bab849ab128 /yaffs_mtdif2_single.c
parent9131fecc79ad4e5fbdb775cdc067bc80aae5adb8 (diff)
yaffs: More clean up
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_mtdif2_single.c')
-rw-r--r--yaffs_mtdif2_single.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/yaffs_mtdif2_single.c b/yaffs_mtdif2_single.c
index 667d129..f5a5c10 100644
--- a/yaffs_mtdif2_single.c
+++ b/yaffs_mtdif2_single.c
@@ -40,7 +40,7 @@ int nandmtd2_write_chunk_tags(struct yaffs_dev *dev, int nand_chunk,
loff_t addr;
- yaffs_packed_tags2 pt;
+ struct yaffs_packed_tags2 pt;
int packed_tags_size = dev->param.no_tags_ecc ? sizeof(pt.t) : sizeof(pt);
void * packed_tags_ptr = dev->param.no_tags_ecc ? (void *) &pt.t : (void *)&pt;
@@ -60,8 +60,8 @@ int nandmtd2_write_chunk_tags(struct yaffs_dev *dev, int nand_chunk,
if (!data || !tags)
BUG();
else if (dev->param.inband_tags) {
- yaffs_packed_tags2_tags_only *pt2tp;
- pt2tp = (yaffs_packed_tags2_tags_only *)(data + dev->data_bytes_per_chunk);
+ struct yaffs_packed_tags2_tags_only *pt2tp;
+ pt2tp = (struct yaffs_packed_tags2_tags_only *)(data + dev->data_bytes_per_chunk);
yaffs_pack_tags2_tags_only(pt2tp, tags);
} else
yaffs_pack_tags2(&pt, tags, !dev->param.no_tags_ecc);
@@ -93,7 +93,7 @@ int nandmtd2_read_chunk_tags(struct yaffs_dev *dev, int nand_chunk,
loff_t addr = ((loff_t) nand_chunk) * dev->param.total_bytes_per_chunk;
- yaffs_packed_tags2 pt;
+ struct yaffs_packed_tags2 pt;
int packed_tags_size = dev->param.no_tags_ecc ? sizeof(pt.t) : sizeof(pt);
void * packed_tags_ptr = dev->param.no_tags_ecc ? (void *) &pt.t: (void *)&pt;
@@ -129,8 +129,8 @@ int nandmtd2_read_chunk_tags(struct yaffs_dev *dev, int nand_chunk,
if (dev->param.inband_tags) {
if (tags) {
- yaffs_packed_tags2_tags_only *pt2tp;
- pt2tp = (yaffs_packed_tags2_tags_only *)&data[dev->data_bytes_per_chunk];
+ struct yaffs_packed_tags2_tags_only *pt2tp;
+ pt2tp = (struct yaffs_packed_tags2_tags_only *)&data[dev->data_bytes_per_chunk];
yaffs_unpack_tags2_tags_only(tags, pt2tp);
}
} else {