Skip to contentSkip to conversation

i2c: designware: Fix kernel-doc

PATCH In review Yang Li 2 participants 2 messages May 26, 2021

Subsystems (3)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 i2c: designware: Fix kernel-doc

Fix function name in i2c-designware-master.c kernel-doc comment to remove a warning found by clang_w1.

drivers/i2c/busses/i2c-designware-master.c:176: warning: expecting prototype for i2c_dw_init(). Prototype was for i2c_dw_init_master() instead.

Fixes 'commit 21bf440ce18e ("i2c: designware: Make HW init functions

static")'

---
 drivers/i2c/busses/i2c-designware-master.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-designware-master.c +1 -1
index 13be1d6..9b08bb5 100644
@@ -165,7 +165,7 @@ static int i2c_dw_set_timings_master(struct dw_i2c_dev *dev)
 }
 
 /**
- * i2c_dw_init() - Initialize the designware I2C master hardware
+ * i2c_dw_init_master() - Initialize the designware I2C master hardware
  * @dev: device private data
  *
  * This functions configures and enables the I2C master.
Signature · 1 line
1.8.3.1
#1 lore raw

Hi

Quoted 7 lines · Yang Li

Fix function name in i2c-designware-master.c kernel-doc comment to remove a warning found by clang_w1.

drivers/i2c/busses/i2c-designware-master.c:176: warning: expecting prototype for i2c_dw_init(). Prototype was for i2c_dw_init_master() instead.

Quoted 8 lines
Fixes 'commit 21bf440ce18e ("i2c: designware: Make HW init functions

static")'

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

Lee Jones sent a fix for this last week:

https://www.spinics.net/lists/linux-i2c/msg51612.html

Jarkko