mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-26 13:44:29 +08:00
GCC4.6: Squash warnings in kirkwood_spi.c
kirkwood_spi.c:125:2: warning: format '%08X' expects type 'unsigned int', but argument 4 has type 'const void *' kirkwood_spi.c:125:2: warning: format '%08X' expects type 'unsigned int', but argument 5 has type 'void *' kirkwood_spi.c:160:5: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'void *' Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
79ad544009
commit
2e8f6419aa
@ -122,7 +122,7 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
|
|||||||
unsigned int tmpdout, tmpdin;
|
unsigned int tmpdout, tmpdin;
|
||||||
int tm, isread = 0;
|
int tm, isread = 0;
|
||||||
|
|
||||||
debug("spi_xfer: slave %u:%u dout %08X din %08X bitlen %u\n",
|
debug("spi_xfer: slave %u:%u dout %p din %p bitlen %u\n",
|
||||||
slave->bus, slave->cs, dout, din, bitlen);
|
slave->bus, slave->cs, dout, din, bitlen);
|
||||||
|
|
||||||
if (flags & SPI_XFER_BEGIN)
|
if (flags & SPI_XFER_BEGIN)
|
||||||
@ -158,7 +158,7 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
|
|||||||
isread = 1;
|
isread = 1;
|
||||||
tmpdin = readl(&spireg->din);
|
tmpdin = readl(&spireg->din);
|
||||||
debug
|
debug
|
||||||
("spi_xfer: din %08x..%08x read\n",
|
("spi_xfer: din %p..%08x read\n",
|
||||||
din, tmpdin);
|
din, tmpdin);
|
||||||
|
|
||||||
if (din) {
|
if (din) {
|
||||||
|
Loading…
Reference in New Issue
Block a user