1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-28 07:23:43 +02:00

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>
This commit is contained in:
Uwe Hermann 2011-09-06 18:17:02 +00:00
parent 5ce5f70ed3
commit 48446c86ff

View File

@ -107,11 +107,11 @@ static int linux_spi_send_command(unsigned int writecnt, unsigned int readcnt,
{ {
struct spi_ioc_transfer msg[2] = { struct spi_ioc_transfer msg[2] = {
{ {
.tx_buf = (uint64_t)txbuf, .tx_buf = (uint64_t)(ptrdiff_t)txbuf,
.len = writecnt, .len = writecnt,
}, },
{ {
.rx_buf = (uint64_t)rxbuf, .rx_buf = (uint64_t)(ptrdiff_t)rxbuf,
.len = readcnt, .len = readcnt,
}, },
}; };