diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2011-09-06 18:17:02 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2011-09-06 18:17:02 +0000 |
commit | 08147acd3c34280e127862f958e975d930a4876d (patch) | |
tree | eab96a11bf9b84450a714a06ec74ba98f6dc67f1 /linux_spi.c | |
parent | 34833ba1cf934d5e33cd0d5c5eb77a4ca7a0a06f (diff) | |
download | flashrom-08147acd3c34280e127862f958e975d930a4876d.zip flashrom-08147acd3c34280e127862f958e975d930a4876d.tar.gz |
Fix linux_spi.c build on 32bit systems
Corresponding to flashrom svn r1428.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
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, }, }; |