From 5fc9fa98300902c4a6aac7671411763aadf920df Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Tue, 30 Dec 2014 17:14:55 +0800 Subject: [PATCH] spi: use memcpy() and not _memcpy() We renamed it to match the standard name. Signed-off-by: Sean Cross --- spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spi.c b/spi.c index 4fd00f6..dc6a095 100644 --- a/spi.c +++ b/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; }