Skip to content

Commit

Permalink
i2c-sibyte: Mark i2c_sibyte_add_bus() as static
Browse files Browse the repository at this point in the history
The i2c_sibyte_add_bus() function is not called, nor meant to, from 
outside, so mark it as static; fixing a sparse warning too.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Maciej W. Rozycki authored and Jean Delvare committed May 11, 2008
1 parent b3eb5a0 commit b11a9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-sibyte.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static const struct i2c_algorithm i2c_sibyte_algo = {
/*
* registering functions to load algorithms at runtime
*/
int __init i2c_sibyte_add_bus(struct i2c_adapter *i2c_adap, int speed)
static int __init i2c_sibyte_add_bus(struct i2c_adapter *i2c_adap, int speed)
{
struct i2c_algo_sibyte_data *adap = i2c_adap->algo_data;

Expand Down

0 comments on commit b11a9d8

Please sign in to comment.