Skip to content

Commit 721a6fe

Browse files
Lee Joneswsakernel
authored andcommitted
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 <[email protected]> Reviewed-by: Alain Volmat <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 3e0f867 commit 721a6fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/i2c/busses/i2c-st.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ static void st_i2c_handle_write(struct st_i2c_dev *i2c_dev)
524524
}
525525

526526
/**
527-
* st_i2c_handle_write() - Handle FIFO enmpty interrupt in case of read
527+
* st_i2c_handle_read() - Handle FIFO empty interrupt in case of read
528528
* @i2c_dev: Controller's private data
529529
*/
530530
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)
558558
}
559559

560560
/**
561-
* st_i2c_isr() - Interrupt routine
561+
* st_i2c_isr_thread() - Interrupt routine
562562
* @irq: interrupt number
563563
* @data: Controller's private data
564564
*/

0 commit comments

Comments
 (0)