summaryrefslogtreecommitdiff
path: root/nuttx/fs/fs_read.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-05-09 00:04:03 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-05-09 00:04:03 +0000
commit039a51bde4bc3f21fe68c3f4cff966fde2532faa (patch)
treeec9942ae9a79d9a6b7315fd02f8b14d27ce95a27 /nuttx/fs/fs_read.c
parent0350e28418647956e6fecc5f6a096fb435cf47f4 (diff)
downloadpx4-nuttx-039a51bde4bc3f21fe68c3f4cff966fde2532faa.tar.gz
px4-nuttx-039a51bde4bc3f21fe68c3f4cff966fde2532faa.tar.bz2
px4-nuttx-039a51bde4bc3f21fe68c3f4cff966fde2532faa.zip
Add support for block drivers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@206 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_read.c')
-rw-r--r--nuttx/fs/fs_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/fs/fs_read.c b/nuttx/fs/fs_read.c
index 7d0edb25e..d5a97c553 100644
--- a/nuttx/fs/fs_read.c
+++ b/nuttx/fs/fs_read.c
@@ -83,11 +83,11 @@ int read(int fd, void *buf, unsigned int nbytes)
/* Is a driver registered? Does it support the read method? */
- if (inode && inode->i_ops && inode->i_ops->read)
+ if (inode && inode->u.i_ops && inode->u.i_ops->read)
{
/* Yes, then let it perform the read */
- ret = (int)inode->i_ops->read(this_file, (char*)buf, (size_t)nbytes);
+ ret = (int)inode->u.i_ops->read(this_file, (char*)buf, (size_t)nbytes);
}
}
}