Skip to contentSkip to conversation

i2c: i2c-st: fix missing struct parameter description

PATCH Applied Alain Volmat 3 participants 3 messages Mar 26, 2020 – Mar 28, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: i2c-st: fix missing struct parameter description

Fix a missing struct parameter description to allow warning free W=1 compilation.

---
 drivers/i2c/busses/i2c-st.c | 1 +
 1 file changed, 1 insertion(+)
drivers/i2c/busses/i2c-st.c +1 -0
index 54e1fc8a495e..f7f7b5b64720 100644
@@ -434,6 +434,7 @@ static void st_i2c_wr_fill_tx_fifo(struct st_i2c_dev *i2c_dev)
 /**
  * st_i2c_rd_fill_tx_fifo() - Fill the Tx FIFO in read mode
  * @i2c_dev: Controller's private data
+ * @max: Maximum amount of data to fill into the Tx FIFO
  *
  * This functions fills the Tx FIFO with fixed pattern when
  * in read mode to trigger clock.
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Alain

Quoted 13 lines · Alain Volmat

Fix a missing struct parameter description to allow warning free W=1 compilation.

---
 drivers/i2c/busses/i2c-st.c | 1 +
 1 file changed, 1 insertion(+)
drivers/i2c/busses/i2c-st.c +0 -0
index 54e1fc8a495e..f7f7b5b64720 100644

drivers/i2c/busses/i2c-st.c static void st_i2c_wr_fill_tx_fifo(struct st_i2c_dev *i2c_dev) · line 440

Quoted 7 lines
drivers/i2c/busses/i2c-st.c +1 -0
@@ -434,6 +434,7 @@ static void st_i2c_wr_fill_tx_fifo(struct st_i2c_dev *i2c_dev)
 /**
  * st_i2c_rd_fill_tx_fifo() - Fill the Tx FIFO in read mode
  * @i2c_dev: Controller's private data
+ * @max: Maximum amount of data to fill into the Tx FIFO
  *
  * This functions fills the Tx FIFO with fixed pattern when
  * in read mode to trigger clock.

Thanks