Commit 48446c86 authored by Uwe Hermann's avatar Uwe Hermann
Browse files

Fix linux_spi.c build on 32bit systems


Corresponding to flashrom svn r1428.
Signed-off-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
parent 5ce5f70e
......@@ -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,
},
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment