mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 15:12:36 +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:
parent
5ce5f70ed3
commit
48446c86ff
@ -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,
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user