summaryrefslogtreecommitdiff
path: root/libdde_linux26/lib
diff options
context:
space:
mode:
authorZheng Da <zhengda1936@gmail.com>2010-08-08 13:24:31 +0200
committerZheng Da <zhengda1936@gmail.com>2010-08-08 13:24:31 +0200
commit76f4a1e072033c98e4b7430a59929d7896064e83 (patch)
tree6732a30ab042d12ad8f5e48da6e135d3bc48d647 /libdde_linux26/lib
parent7cd709038cc5c25d66d4bacc8c7c1268d9d3f5dd (diff)
modify variable name and comment of block_dev_rw.
Diffstat (limited to 'libdde_linux26/lib')
-rw-r--r--libdde_linux26/lib/src/mach_glue/block.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdde_linux26/lib/src/mach_glue/block.c b/libdde_linux26/lib/src/mach_glue/block.c
index ea44d87f..3820712c 100644
--- a/libdde_linux26/lib/src/mach_glue/block.c
+++ b/libdde_linux26/lib/src/mach_glue/block.c
@@ -17,11 +17,11 @@ struct block_device *open_block_dev (char *name, int part, fmode_t mode)
return ERR_PTR(-ENXIO);
}
-/* write a piece of data to a block device.
+/* read or write a piece of data to a block device.
* DATA must be in one page.
* SECTORNR: the writing location in sectors. */
int block_dev_rw (struct block_device *dev, int sectornr,
- char *data, int count, int rw, void (*write_done (int err)))
+ char *data, int count, int rw, void (*done (int err)))
{
int err = 0;
struct bio *bio;
@@ -30,7 +30,7 @@ int block_dev_rw (struct block_device *dev, int sectornr,
void end_bio (struct bio *bio, int err)
{
- write_done (err);
+ done (err);
}
assert (count <= PAGE_SIZE);