diff --git a/arch/arm/src/stm32/stm32_i2s.c b/arch/arm/src/stm32/stm32_i2s.c index 3de5619201..4762abd25b 100644 --- a/arch/arm/src/stm32/stm32_i2s.c +++ b/arch/arm/src/stm32/stm32_i2s.c @@ -49,7 +49,7 @@ * is configured. * 3. Add a calls to up_spiinitialize() in your low level application * initialization logic - * 4. The handle returned by stm32_i2sdev_initialize() may then be used to + * 4. The handle returned by stm32_i2sbus_initialize() may then be used to * bind the I2S driver to higher level logic * ****************************************************************************/ @@ -2604,7 +2604,7 @@ static void i2s3_configure(struct stm32_i2s_s *priv) ****************************************************************************/ /**************************************************************************** - * Name: stm32_i2sdev_initialize + * Name: stm32_i2sbus_initialize * * Description: * Initialize the selected i2S port @@ -2617,7 +2617,7 @@ static void i2s3_configure(struct stm32_i2s_s *priv) * ****************************************************************************/ -FAR struct i2s_dev_s *stm32_i2sdev_initialize(int port) +FAR struct i2s_dev_s *stm32_i2sbus_initialize(int port) { FAR struct stm32_i2s_s *priv = NULL; irqstate_t flags; diff --git a/arch/arm/src/stm32/stm32_i2s.h b/arch/arm/src/stm32/stm32_i2s.h index 29e1ccec9a..b14a18dfb0 100644 --- a/arch/arm/src/stm32/stm32_i2s.h +++ b/arch/arm/src/stm32/stm32_i2s.h @@ -65,7 +65,7 @@ extern "C" ************************************************************************************/ /************************************************************************************ - * Name: stm32_i2sdev_initialize + * Name: stm32_i2sbus_initialize * * Description: * Initialize the selected I2S port @@ -78,7 +78,7 @@ extern "C" * ************************************************************************************/ -FAR struct i2s_dev_s *stm32_i2sdev_initialize(int port); +FAR struct i2s_dev_s *stm32_i2sbus_initialize(int port); #undef EXTERN #if defined(__cplusplus) diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_cs43l22.c b/boards/arm/stm32/stm32f4discovery/src/stm32_cs43l22.c index d66eabe1f3..40e9c44d4b 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_cs43l22.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_cs43l22.c @@ -297,7 +297,7 @@ int stm32_cs43l22_initialize(int minor) } /* Get an instance of the I2S interface for the CS43L22 data channel */ - i2s = stm32_i2sdev_initialize(CS43L22_I2S_BUS); + i2s = stm32_i2sbus_initialize(CS43L22_I2S_BUS); if (!i2s) { auderr("ERROR: Failed to initialize I2S%d\n", CS43L22_I2S_BUS); diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32f4discovery.h b/boards/arm/stm32/stm32f4discovery/src/stm32f4discovery.h index 7b04f903a4..beed99d7dc 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32f4discovery.h +++ b/boards/arm/stm32/stm32f4discovery/src/stm32f4discovery.h @@ -438,7 +438,7 @@ void weak_function stm32_spidev_initialize(void); * ****************************************************************************/ -FAR struct i2s_dev_s *stm32_i2sdev_initialize(int port); +void weak_function stm32_i2sdev_initialize(void); /**************************************************************************** * Name: stm32_bh1750initialize