diff options
author | uwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2011-09-06 18:17:02 +0000 |
---|---|---|
committer | uwe <uwe@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2011-09-06 18:17:02 +0000 |
commit | f36ef36cd60288fb18cb1a1cdedc75855a984cc7 (patch) | |
tree | eab96a11bf9b84450a714a06ec74ba98f6dc67f1 /linux_spi.c | |
parent | c4f5350e9946717bf4ae740c8419037b556825b0 (diff) | |
download | flashrom-f36ef36cd60288fb18cb1a1cdedc75855a984cc7.tar.gz |
Fix linux_spi.c build on 32bit systems.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1428 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'linux_spi.c')
-rw-r--r-- | linux_spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux_spi.c b/linux_spi.c index fa6ec17..d120754 100644 --- a/linux_spi.c +++ b/linux_spi.c @@ -107,11 +107,11 @@ static int linux_spi_send_command(unsigned int writecnt, unsigned int readcnt, { struct spi_ioc_transfer msg[2] = { { - .tx_buf = (uint64_t)txbuf, + .tx_buf = (uint64_t)(ptrdiff_t)txbuf, .len = writecnt, }, { - .rx_buf = (uint64_t)rxbuf, + .rx_buf = (uint64_t)(ptrdiff_t)rxbuf, .len = readcnt, }, }; |