Skip to contentSkip to conversation

i2c-designware: i2c_dw_xfer_msg can be static

PATCH In review Jean Delvare 2 participants 2 messages Sep 30, 2012 – Oct 1, 2012 1 message not in the archive

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

PATCH 1/1 i2c-designware: i2c_dw_xfer_msg can be static

i2c_dw_xfer_msg is only called internally so it can be static. It original was, before the driver split. No idea why it was changed at that time.

Cc Dirk Brandewie <[email protected]>
---
 drivers/i2c/busses/i2c-designware-core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-designware-core.c +1 -1
@@ -370,7 +370,7 @@ static void i2c_dw_xfer_init(struct dw_i
  * messages into the tx buffer.  Even if the size of i2c_msg data is
  * longer than the size of the tx buffer, it handles everything.
  */
-void
+static void
 i2c_dw_xfer_msg(struct dw_i2c_dev *dev)
 {
 	struct i2c_msg *msgs = dev->msgs;
Signature · 1 line
Jean Delvare

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 6 lines · Jean Delvare

i2c_dw_xfer_msg is only called internally so it can be static. It original was, before the driver split. No idea why it was changed at that time.

Cc Dirk Brandewie <[email protected]>

Ack

Not sure how it got dropped sorry

Quoted 19 lines
---
 drivers/i2c/busses/i2c-designware-core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-designware-core.c 2012-09-30 13:50:09.893408917 +0200 renamed from drivers/i2c/busses/i2c-designware-core.c 2012-09-30 13:49:56.000000000 +0200 +1 -2
@@ -370,7 +370,7 @@ static void i2c_dw_xfer_init(struct dw_i
  * messages into the tx buffer.  Even if the size of i2c_msg data is
  * longer than the size of the tx buffer, it handles everything.
  */
-void
+static void
 i2c_dw_xfer_msg(struct dw_i2c_dev *dev)
 {
        struct i2c_msg *msgs = dev->msgs;
 
 
--

Jean Delvare