From ef64f8b3f421166a1ee5f7577bf0873dc884f33b Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 4 Feb 2016 10:15:51 -0600 Subject: [PATCH] Missed spiinitialize name change --- arch/arm/src/lpc11xx/lpc11_spi.c | 4 ++-- arch/arm/src/lpc11xx/lpc11_spi.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/src/lpc11xx/lpc11_spi.c b/arch/arm/src/lpc11xx/lpc11_spi.c index 5adf05800a..ac39b52a9b 100644 --- a/arch/arm/src/lpc11xx/lpc11_spi.c +++ b/arch/arm/src/lpc11xx/lpc11_spi.c @@ -534,7 +534,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR void *buffer, ****************************************************************************/ /**************************************************************************** - * Name: lpc11_spiinitialize + * Name: lpc11_spibus_initialize * * Description: * Initialize the selected SPI port. @@ -547,7 +547,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR void *buffer, * ****************************************************************************/ -FAR struct spi_dev_s *lpc11_spiinitialize(int port) +FAR struct spi_dev_s *lpc11_spibus_initialize(int port) { FAR struct lpc11_spidev_s *priv = &g_spidev; irqstate_t flags; diff --git a/arch/arm/src/lpc11xx/lpc11_spi.h b/arch/arm/src/lpc11xx/lpc11_spi.h index 572bffd64e..dc8edfa904 100644 --- a/arch/arm/src/lpc11xx/lpc11_spi.h +++ b/arch/arm/src/lpc11xx/lpc11_spi.h @@ -71,7 +71,7 @@ extern "C" ************************************************************************************/ /************************************************************************************ - * Name: lpc11_spiinitialize + * Name: lpc11_spibus_initialize * * Description: * Initialize the selected SPI port. @@ -84,7 +84,7 @@ extern "C" * ************************************************************************************/ -FAR struct spi_dev_s *lpc11_spiinitialize(int port); +FAR struct spi_dev_s *lpc11_spibus_initialize(int port); /************************************************************************************ * Name: lpc11_spiselect, lpc11_status, and lpc11_spicmddata @@ -93,7 +93,7 @@ FAR struct spi_dev_s *lpc11_spiinitialize(int port); * These external functions must be provided by board-specific logic. They are * implementations of the select, status, and cmddata methods of the SPI interface * defined by struct spi_ops_s (see include/nuttx/spi/spi.h). All other methods - * including lpc11_spiinitialize()) are provided by common LPC11xx logic. To use + * including lpc11_spibus_initialize()) are provided by common LPC11xx logic. To use * this common SPI logic on your board: * * 1. Provide logic in lpc11_boardinitialize() to configure SPI chip select pins. @@ -104,9 +104,9 @@ FAR struct spi_dev_s *lpc11_spiinitialize(int port); * lpc11_spicmddata() functions in your board-specific logic. This function * will perform cmd/data selection operations using GPIOs in the way your * board is configured. - * 3. Add a call to lpc11_spiinitialize() in your low level application + * 3. Add a call to lpc11_spibus_initialize() in your low level application * initialization logic - * 4. The handle returned by lpc11_spiinitialize() may then be used to bind the + * 4. The handle returned by lpc11_spibus_initialize() may then be used to bind the * SPI driver to higher level logic (e.g., calling mmcsd_spislotinitialize(), * for example, will bind the SPI driver to the SPI MMC/SD driver). *