Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Dirk Brandewie <dirk.brandewie@gmail.com>

authored by

Jean Delvare and committed by
Jean Delvare
bccd780f 401e72b5

+1 -1
+1 -1
drivers/i2c/busses/i2c-designware-core.c
··· 370 370 * messages into the tx buffer. Even if the size of i2c_msg data is 371 371 * longer than the size of the tx buffer, it handles everything. 372 372 */ 373 - void 373 + static void 374 374 i2c_dw_xfer_msg(struct dw_i2c_dev *dev) 375 375 { 376 376 struct i2c_msg *msgs = dev->msgs;