mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
IDE: fix compiler warnings
The changes introduced by commit 0abddf8
``cmd_ide: enhance new
feature "CONFIG_IDE_AHB"'' caused compiler warnings like
cmd_ide.c: In function 'ide_init':
cmd_ide.c:716: warning: assignment from incompatible pointer type
Constify the respective function arguments to fix this.
Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
@@ -52,7 +52,7 @@ typedef ulong lbaint_t;
|
||||
|
||||
void ide_init(void);
|
||||
ulong ide_read(int device, lbaint_t blknr, ulong blkcnt, void *buffer);
|
||||
ulong ide_write(int device, lbaint_t blknr, ulong blkcnt, void *buffer);
|
||||
ulong ide_write(int device, lbaint_t blknr, ulong blkcnt, const void *buffer);
|
||||
|
||||
#if defined(CONFIG_OF_IDE_FIXUP)
|
||||
int ide_device_present(int dev);
|
||||
|
Reference in New Issue
Block a user