[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-head
Subject:    i2c: busses: i2c-st: Fix copy/paste function misnaming issues
From:       Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date:       2021-05-30 4:30:36
Message-ID: git-mailbomb-linux-master-721a6fe5f9584357617b463e687f379412d1c213 () kernel ! org
[Download RAW message or body]

Commit:     721a6fe5f9584357617b463e687f379412d1c213
Parent:     3e0f8672f1685ed1fbbc4b3388fe8093e43e9783
Refname:    refs/heads/master
Web:        https://git.kernel.org/torvalds/c/721a6fe5f9584357617b463e687f379412d1c213
                
Author:     Lee Jones <lee.jones@linaro.org>
AuthorDate: Thu May 20 20:01:02 2021 +0100
Committer:  Wolfram Sang <wsa@kernel.org>
CommitDate: Thu May 27 21:39:35 2021 +0200

    i2c: busses: i2c-st: Fix copy/paste function misnaming issues
    
    Fixes the following W=1 kernel build warning(s):
    
     drivers/i2c/busses/i2c-st.c:531: warning: expecting prototype for \
                st_i2c_handle_write(). Prototype was for st_i2c_handle_read() instead
     drivers/i2c/busses/i2c-st.c:566: warning: expecting prototype for st_i2c_isr(). \
Prototype was for st_i2c_isr_thread() instead  
    Fix the "enmpty" typo while here.
    
    Signed-off-by: Lee Jones <lee.jones@linaro.org>
    Reviewed-by: Alain Volmat <alain.volmat@foss.st.com>
    Signed-off-by: Wolfram Sang <wsa@kernel.org>
---
 drivers/i2c/busses/i2c-st.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-st.c b/drivers/i2c/busses/i2c-st.c
index faa81a95551fe..88482316d22a0 100644
--- a/drivers/i2c/busses/i2c-st.c
+++ b/drivers/i2c/busses/i2c-st.c
@@ -524,7 +524,7 @@ static void st_i2c_handle_write(struct st_i2c_dev *i2c_dev)
 }
 
 /**
- * st_i2c_handle_write() - Handle FIFO enmpty interrupt in case of read
+ * st_i2c_handle_read() - Handle FIFO empty interrupt in case of read
  * @i2c_dev: Controller's private data
  */
 static void st_i2c_handle_read(struct st_i2c_dev *i2c_dev)
@@ -558,7 +558,7 @@ static void st_i2c_handle_read(struct st_i2c_dev *i2c_dev)
 }
 
 /**
- * st_i2c_isr() - Interrupt routine
+ * st_i2c_isr_thread() - Interrupt routine
  * @irq: interrupt number
  * @data: Controller's private data
  */


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic