Преглед изворни кода

[PATCH] i2c: Static function fixes, 1 of 4

eeprom_detect is first declared static and then when
the function is actually implemented, there is no static.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Ben Dooks пре 19 година
родитељ
комит
6536c49a1e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      drivers/i2c/chips/eeprom.c

+ 1 - 1
drivers/i2c/chips/eeprom.c

@@ -155,7 +155,7 @@ static int eeprom_attach_adapter(struct i2c_adapter *adapter)
 }
 }
 
 
 /* This function is called by i2c_probe */
 /* This function is called by i2c_probe */
-int eeprom_detect(struct i2c_adapter *adapter, int address, int kind)
+static int eeprom_detect(struct i2c_adapter *adapter, int address, int kind)
 {
 {
 	struct i2c_client *new_client;
 	struct i2c_client *new_client;
 	struct eeprom_data *data;
 	struct eeprom_data *data;