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 /common/cmd_ide.c | |
parent | 53758fa20e935cc87eeb0519ed365df753a6f289 (diff) | |
download | u-boot-eb867a76238fb38e952c37871b16d0d7fd61c95f.tar.gz u-boot-eb867a76238fb38e952c37871b16d0d7fd61c95f.tar.xz u-boot-eb867a76238fb38e952c37871b16d0d7fd61c95f.zip |
[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 'common/cmd_ide.c')
-rw-r--r-- | common/cmd_ide.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/cmd_ide.c b/common/cmd_ide.c index ebc080c72a..2e185cc441 100644 --- a/common/cmd_ide.c +++ b/common/cmd_ide.c @@ -188,7 +188,7 @@ static void ident_cpy (unsigned char *dest, unsigned char *src, unsigned int len #ifdef CONFIG_ATAPI static void atapi_inquiry(block_dev_desc_t *dev_desc); -ulong atapi_read (int device, lbaint_t blknr, ulong blkcnt, ulong *buffer); +ulong atapi_read (int device, lbaint_t blknr, ulong blkcnt, void *buffer); #endif @@ -1233,7 +1233,7 @@ static void ide_ident (block_dev_desc_t *dev_desc) /* ------------------------------------------------------------------------- */ -ulong ide_read (int device, lbaint_t blknr, ulong blkcnt, ulong *buffer) +ulong ide_read (int device, lbaint_t blknr, ulong blkcnt, void *buffer) { ulong n = 0; unsigned char c; @@ -1353,7 +1353,7 @@ IDE_READ_E: /* ------------------------------------------------------------------------- */ -ulong ide_write (int device, lbaint_t blknr, ulong blkcnt, ulong *buffer) +ulong ide_write (int device, lbaint_t blknr, ulong blkcnt, void *buffer) { ulong n = 0; unsigned char c; @@ -2015,7 +2015,7 @@ static void atapi_inquiry(block_dev_desc_t * dev_desc) #define ATAPI_READ_BLOCK_SIZE 2048 /* assuming CD part */ #define ATAPI_READ_MAX_BLOCK ATAPI_READ_MAX_BYTES/ATAPI_READ_BLOCK_SIZE /* max blocks */ -ulong atapi_read (int device, lbaint_t blknr, ulong blkcnt, ulong *buffer) +ulong atapi_read (int device, lbaint_t blknr, ulong blkcnt, void *buffer) { ulong n = 0; unsigned char ccb[12]; /* Command descriptor block */ |