diff mbox series

[14/16] i2c: busses: i2c-stm32f4: Remove incorrectly placed ' ' from function name

Message ID 20210520190105.3772683-15-lee.jones@linaro.org
State Accepted
Commit a00cb25169d508908c6baa886035e0aa9121942a
Headers show
Series Rid W=1 warnings from I2C | expand

Commit Message

Lee Jones May 20, 2021, 7:01 p.m. UTC
Fixes the following W=1 kernel build warning(s):

 drivers/i2c/busses/i2c-stm32f4.c:321: warning: expecting prototype for stm32f4_i2c_write_ byte()(). Prototype was for stm32f4_i2c_write_byte() instead

Cc: Pierre-Yves MORDRET <pierre-yves.mordret@foss.st.com>
Cc: Alain Volmat <alain.volmat@foss.st.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Cedric Madianga <cedric.madianga@gmail.com>
Cc: linux-i2c@vger.kernel.org
Cc: linux-stm32@st-md-mailman.stormreply.com
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>

---
 drivers/i2c/busses/i2c-stm32f4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.31.1

Comments

Alain Volmat May 21, 2021, 2:20 p.m. UTC | #1
Thanks for the patch. Looks fine for me.

Reviewed-by: Alain Volmat <alain.volmat@foss.st.com>


On Thu, May 20, 2021 at 08:01:03PM +0100, Lee Jones wrote:
> Fixes the following W=1 kernel build warning(s):

> 

>  drivers/i2c/busses/i2c-stm32f4.c:321: warning: expecting prototype for stm32f4_i2c_write_ byte()(). Prototype was for stm32f4_i2c_write_byte() instead

> 

> Cc: Pierre-Yves MORDRET <pierre-yves.mordret@foss.st.com>

> Cc: Alain Volmat <alain.volmat@foss.st.com>

> Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>

> Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>

> Cc: Philipp Zabel <p.zabel@pengutronix.de>

> Cc: Cedric Madianga <cedric.madianga@gmail.com>

> Cc: linux-i2c@vger.kernel.org

> Cc: linux-stm32@st-md-mailman.stormreply.com

> Cc: linux-arm-kernel@lists.infradead.org

> Signed-off-by: Lee Jones <lee.jones@linaro.org>

> ---

>  drivers/i2c/busses/i2c-stm32f4.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/drivers/i2c/busses/i2c-stm32f4.c b/drivers/i2c/busses/i2c-stm32f4.c

> index 4933fc8ce3fd1..eebce7ecef25b 100644

> --- a/drivers/i2c/busses/i2c-stm32f4.c

> +++ b/drivers/i2c/busses/i2c-stm32f4.c

> @@ -313,7 +313,7 @@ static int stm32f4_i2c_wait_free_bus(struct stm32f4_i2c_dev *i2c_dev)

>  }

>  

>  /**

> - * stm32f4_i2c_write_ byte() - Write a byte in the data register

> + * stm32f4_i2c_write_byte() - Write a byte in the data register

>   * @i2c_dev: Controller's private data

>   * @byte: Data to write in the register

>   */

> -- 

> 2.31.1

>
Wolfram Sang May 27, 2021, 7:35 p.m. UTC | #2
On Thu, May 20, 2021 at 08:01:03PM +0100, Lee Jones wrote:
> Fixes the following W=1 kernel build warning(s):

> 

>  drivers/i2c/busses/i2c-stm32f4.c:321: warning: expecting prototype for stm32f4_i2c_write_ byte()(). Prototype was for stm32f4_i2c_write_byte() instead

> 

> Cc: Pierre-Yves MORDRET <pierre-yves.mordret@foss.st.com>

> Cc: Alain Volmat <alain.volmat@foss.st.com>

> Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>

> Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>

> Cc: Philipp Zabel <p.zabel@pengutronix.de>

> Cc: Cedric Madianga <cedric.madianga@gmail.com>

> Cc: linux-i2c@vger.kernel.org

> Cc: linux-stm32@st-md-mailman.stormreply.com

> Cc: linux-arm-kernel@lists.infradead.org

> Signed-off-by: Lee Jones <lee.jones@linaro.org>


Applied to for-current, thanks!
diff mbox series

Patch

diff --git a/drivers/i2c/busses/i2c-stm32f4.c b/drivers/i2c/busses/i2c-stm32f4.c
index 4933fc8ce3fd1..eebce7ecef25b 100644
--- a/drivers/i2c/busses/i2c-stm32f4.c
+++ b/drivers/i2c/busses/i2c-stm32f4.c
@@ -313,7 +313,7 @@  static int stm32f4_i2c_wait_free_bus(struct stm32f4_i2c_dev *i2c_dev)
 }
 
 /**
- * stm32f4_i2c_write_ byte() - Write a byte in the data register
+ * stm32f4_i2c_write_byte() - Write a byte in the data register
  * @i2c_dev: Controller's private data
  * @byte: Data to write in the register
  */