spi: use memcpy() and not _memcpy()
We renamed it to match the standard name. Signed-off-by: Sean Cross <xobs@kosagi.com>
This commit is contained in:
parent
b4232c3641
commit
5fc9fa9830
1 changed files with 2 additions and 2 deletions
4
spi.c
4
spi.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue