Skip to content

Commit

Permalink
spi: use memcpy() and not _memcpy()
Browse files Browse the repository at this point in the history
We renamed it to match the standard name.

Signed-off-by: Sean Cross <xobs@kosagi.com>
  • Loading branch information
Sean Cross committed Dec 30, 2014
1 parent b4232c3 commit 5fc9fa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spi.c
Expand Up @@ -23,14 +23,14 @@ int spi_cmd_txrx(uint8_t tx_size, uint8_t rx_size,
{
spi_init();

_memcpy(SPI_DATA, tx_buf, tx_size);
memcpy(SPI_DATA, tx_buf, tx_size);

writel(tx_size, SPI_WRITE_COUNT);
writel(rx_size, SPI_READ_COUNT);

scriptic_run("spi_run");

_memcpy(rx_buf, SPI_DATA + tx_size, rx_size);
memcpy(rx_buf, SPI_DATA + tx_size, rx_size);

return 0;
}

0 comments on commit 5fc9fa9

Please sign in to comment.