Skip to content

Commit

Permalink
Fix linux_spi.c build on 32bit systems
Browse files Browse the repository at this point in the history
Corresponding to flashrom svn r1428.

Signed-off-by: Uwe Hermann <[email protected]>
Acked-by: Uwe Hermann <[email protected]>
  • Loading branch information
uwehermann committed Sep 6, 2011
1 parent 5ce5f70 commit 48446c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linux_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};
Expand Down

0 comments on commit 48446c8

Please sign in to comment.