block: constify sect_buf argument of ide_write_data
authorGabor Juhos <juhosg@openwrt.org>
Sun, 26 May 2013 10:11:28 +0000 (12:11 +0200)
committerMacpaul Lin <macpaul@gmail.com>
Wed, 24 Jul 2013 03:49:17 +0000 (11:49 +0800)
commitc575180bae9b6baa8aa06e832f81ff41264f5707
treeea99164e478826612e12f5c7b4816a9aefea0d65
parentdbb713baa608d3397e56bc32b26d2efe07c756ee
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>
doc/driver-model/UDM-block.txt
drivers/block/ftide020.c
include/ide.h