diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2007-02-20 09:05:45 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-02-20 09:05:45 +0100 |
commit | eb867a76238fb38e952c37871b16d0d7fd61c95f (patch) | |
tree | 7db1f4941c4e51073b7a6d600a9432b51e2f56fa /drivers | |
parent | 53758fa20e935cc87eeb0519ed365df753a6f289 (diff) |
[PATCH 9_9] Use "void *" not "unsigned long *" for block dev read_write buffer pointers
Block device read/write is anonymous data; there is no need to use a
typed pointer. void * is fine. Also add a hook for block_read functions
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/systemace.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/systemace.c b/drivers/systemace.c index 3f329f97083..9502623a741 100644 --- a/drivers/systemace.c +++ b/drivers/systemace.c @@ -73,8 +73,7 @@ /* */ static unsigned long systemace_read(int dev, unsigned long start, - unsigned long blkcnt, - unsigned long *buffer); + unsigned long blkcnt, void *buffer); static block_dev_desc_t systemace_dev = { 0 }; @@ -133,11 +132,11 @@ block_dev_desc_t *systemace_get_dev(int dev) * number of blocks read. A zero return indicates an error. */ static unsigned long systemace_read(int dev, unsigned long start, - unsigned long blkcnt, unsigned long *buffer) + unsigned long blkcnt, void *buffer) { int retry; unsigned blk_countdown; - unsigned char *dp = (unsigned char *)buffer; + unsigned char *dp = buffer; unsigned val; if (get_cf_lock() < 0) { |