]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: cadence_qspi: Fix warning cast from pointer to integer of different size
authorLey Foon Tan <ley.foon.tan@intel.com>
Fri, 1 Jun 2018 08:52:20 +0000 (16:52 +0800)
committerMarek Vasut <marex@denx.de>
Thu, 12 Jul 2018 07:22:11 +0000 (09:22 +0200)
commit8b71e46ceab8b66208107de688cbb4dd25fe38cd
treef162b4481f341e986de54c8e30aea80dc5bd09ee
parent9bd39dd8e5f600560a00203ccb3e4e87780e10a2
spi: cadence_qspi: Fix warning cast from pointer to integer of different size

Use "%p" to print cmdbuf.

Compilation warning as below:

  CC      spl/drivers/spi/cadence_qspi_apb.o
  LD      spl/lib/built-in.o
drivers/spi/cadence_qspi_apb.c: In function ‘cadence_qspi_apb_indirect_write_setup’:
drivers/spi/cadence_qspi_apb.c:696:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
          cmdlen, (unsigned int)cmdbuf);

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Acked-by: Marek Vasut <marex@denx.de>
drivers/spi/cadence_qspi_apb.c