summaryrefslogtreecommitdiff
path: root/doc/driver-model
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-05-26 12:11:28 +0200
committerMacpaul Lin <macpaul@gmail.com>2013-07-24 11:49:17 +0800
commitc575180bae9b6baa8aa06e832f81ff41264f5707 (patch)
treeea99164e478826612e12f5c7b4816a9aefea0d65 /doc/driver-model
parentdbb713baa608d3397e56bc32b26d2efe07c756ee (diff)
downloadu-boot-imx-c575180bae9b6baa8aa06e832f81ff41264f5707.zip
u-boot-imx-c575180bae9b6baa8aa06e832f81ff41264f5707.tar.gz
u-boot-imx-c575180bae9b6baa8aa06e832f81ff41264f5707.tar.bz2
block: constify sect_buf argument of ide_write_data
Add a const keyword to the sect_buf argument of ide_write_data to fix the following warning: cmd_ide.c: In function '__ide_output_data': cmd_ide.c:548: warning: passing argument 2 of 'ide_write_data' discards qualifiers from pointer target type /devel/u-boot.git/include/ide.h:76: note: expected 'ulong *' but argument is of type 'const ulong *' Also modify the driver-model documentation to match with the new prototype. Compile tested only. Cc: Macpaul Lin <macpaul@andestech.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Diffstat (limited to 'doc/driver-model')
-rw-r--r--doc/driver-model/UDM-block.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/driver-model/UDM-block.txt b/doc/driver-model/UDM-block.txt
index 5d5c776..b42ec69 100644
--- a/doc/driver-model/UDM-block.txt
+++ b/doc/driver-model/UDM-block.txt
@@ -93,7 +93,7 @@ I) Overview
uchar ide_read_register(int dev, unsigned int port);
void ide_write_register(int dev, unsigned int port, unsigned char val);
void ide_read_data(int dev, ulong *sect_buf, int words);
- void ide_write_data(int dev, ulong *sect_buf, int words);
+ void ide_write_data(int dev, const ulong *sect_buf, int words);
The first two functions are called from ide_inb()/ide_outb(), and will
default to direct memory access if CONFIG_IDE_AHB is not set, or