Fix functions being declared static and then implemented

non-static. Backport from Linux 2.6, original patch from Ben Dooks.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3156 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2005-10-30 14:15:46 +00:00
1 parent f1849c2f56
commit 2dfd3d5b47
10 files changed
+34 -34

No files matched your search

+10 -10
View File
@@ -603,14 +603,14 @@ static ctl_table adm1026_common[] = {
* the module is loaded * the module is loaded
* a new adapter is loaded * a new adapter is loaded
*/ */
int adm1026_attach_adapter(struct i2c_adapter *adapter) static int adm1026_attach_adapter(struct i2c_adapter *adapter)
{ {
return i2c_detect(adapter, &addr_data, adm1026_detect); return i2c_detect(adapter, &addr_data, adm1026_detect);
} }
/* This function is called by i2c_detect */ /* This function is called by i2c_detect */
int adm1026_detect(struct i2c_adapter *adapter, int address, static int adm1026_detect(struct i2c_adapter *adapter, int address,
unsigned short flags, int kind) unsigned short flags, int kind)
{ {
int i; int i;
int company, verstep ; int company, verstep ;
@@ -769,7 +769,7 @@ int adm1026_detect(struct i2c_adapter *adapter, int address,
return err; return err;
} }
int adm1026_detach_client(struct i2c_client *client) static int adm1026_detach_client(struct i2c_client *client)
{ {
int err; int err;
int id ; int id ;
@@ -788,7 +788,7 @@ int adm1026_detach_client(struct i2c_client *client)
return 0; return 0;
} }
int adm1026_read_value(struct i2c_client *client, u8 reg) static int adm1026_read_value(struct i2c_client *client, u8 reg)
{ {
int res; int res;
@@ -803,7 +803,7 @@ int adm1026_read_value(struct i2c_client *client, u8 reg)
return res ; return res ;
} }
int adm1026_write_value(struct i2c_client *client, u8 reg, int value) static int adm1026_write_value(struct i2c_client *client, u8 reg, int value)
{ {
int res ; int res ;
@@ -819,7 +819,7 @@ int adm1026_write_value(struct i2c_client *client, u8 reg, int value)
} }
/* Called when we have found a new ADM1026. */ /* Called when we have found a new ADM1026. */
void adm1026_init_client(struct i2c_client *client) static void adm1026_init_client(struct i2c_client *client)
{ {
int value ; int value ;
int i; int i;
@@ -918,7 +918,7 @@ void adm1026_init_client(struct i2c_client *client)
} }
void adm1026_print_gpio(struct i2c_client *client) static void adm1026_print_gpio(struct i2c_client *client)
{ {
struct adm1026_data *data = client->data; struct adm1026_data *data = client->data;
int i ; int i ;
@@ -952,7 +952,7 @@ void adm1026_print_gpio(struct i2c_client *client)
} }
} }
void adm1026_fixup_gpio(struct i2c_client *client) static void adm1026_fixup_gpio(struct i2c_client *client)
{ {
struct adm1026_data *data = client->data; struct adm1026_data *data = client->data;
int i ; int i ;
@@ -1027,7 +1027,7 @@ void adm1026_fixup_gpio(struct i2c_client *client)
adm1026_print_gpio(client); adm1026_print_gpio(client);
} }
void adm1026_update_client(struct i2c_client *client) static void adm1026_update_client(struct i2c_client *client)
{ {
struct adm1026_data *data = client->data; struct adm1026_data *data = client->data;
int i; int i;
+2 -2
View File
@@ -159,8 +159,8 @@ static int ds1621_attach_adapter(struct i2c_adapter *adapter)
} }
/* This function is called by i2c_detect */ /* This function is called by i2c_detect */
int ds1621_detect(struct i2c_adapter *adapter, int address, static int ds1621_detect(struct i2c_adapter *adapter, int address,
unsigned short flags, int kind) unsigned short flags, int kind)
{ {
int i, conf, temp; int i, conf, temp;
struct i2c_client *new_client; struct i2c_client *new_client;
+2 -2
View File
@@ -157,8 +157,8 @@ static int eeprom_attach_adapter(struct i2c_adapter *adapter)
} }
/* This function is called by i2c_detect */ /* This function is called by i2c_detect */
int eeprom_detect(struct i2c_adapter *adapter, int address, static int eeprom_detect(struct i2c_adapter *adapter, int address,
unsigned short flags, int kind) unsigned short flags, int kind)
{ {
int i; int i;
struct i2c_client *new_client; struct i2c_client *new_client;
+2 -2
View File
@@ -223,8 +223,8 @@ static int fscpos_attach_adapter(struct i2c_adapter *adapter)
return i2c_detect(adapter, &addr_data, fscpos_detect); return i2c_detect(adapter, &addr_data, fscpos_detect);
} }
int fscpos_detect(struct i2c_adapter *adapter, int address, static int fscpos_detect(struct i2c_adapter *adapter, int address,
unsigned short flags, int kind) unsigned short flags, int kind)
{ {
int i; int i;
struct i2c_client *new_client; struct i2c_client *new_client;
+2 -2
View File
@@ -100,8 +100,8 @@ static int lm75_attach_adapter(struct i2c_adapter *adapter)
} }
/* This function is called by i2c_detect */ /* This function is called by i2c_detect */
int lm75_detect(struct i2c_adapter *adapter, int address, static int lm75_detect(struct i2c_adapter *adapter, int address,
unsigned short flags, int kind) unsigned short flags, int kind)
{ {
int i; int i;
struct i2c_client *new_client; struct i2c_client *new_client;
+2 -2
View File
@@ -256,8 +256,8 @@ static int lm78_attach_adapter(struct i2c_adapter *adapter)
} }
/* This function is called by i2c_detect */ /* This function is called by i2c_detect */
int lm78_detect(struct i2c_adapter *adapter, int address, static int lm78_detect(struct i2c_adapter *adapter, int address,
unsigned short flags, int kind) unsigned short flags, int kind)
{ {
int i; int i;
struct i2c_client *new_client; struct i2c_client *new_client;
+2 -2
View File
@@ -232,8 +232,8 @@ static int lm80_attach_adapter(struct i2c_adapter *adapter)
return i2c_detect(adapter, &addr_data, lm80_detect); return i2c_detect(adapter, &addr_data, lm80_detect);
} }
int lm80_detect(struct i2c_adapter *adapter, int address, static int lm80_detect(struct i2c_adapter *adapter, int address,
unsigned short flags, int kind) unsigned short flags, int kind)
{ {
int i, cur; int i, cur;
struct i2c_client *new_client; struct i2c_client *new_client;
+8 -8
View File
@@ -693,14 +693,14 @@ static ctl_table emc6d100_specific[] = {
* lm85_driver is inserted (when this module is loaded), for each * lm85_driver is inserted (when this module is loaded), for each
available adapter available adapter
* when a new adapter is inserted (and lm85_driver is still present) */ * when a new adapter is inserted (and lm85_driver is still present) */
int lm85_attach_adapter(struct i2c_adapter *adapter) static int lm85_attach_adapter(struct i2c_adapter *adapter)
{ {
return i2c_detect(adapter, &addr_data, lm85_detect); return i2c_detect(adapter, &addr_data, lm85_detect);
} }
/* This function is called by i2c_detect */ /* This function is called by i2c_detect */
int lm85_detect(struct i2c_adapter *adapter, int address, static int lm85_detect(struct i2c_adapter *adapter, int address,
unsigned short flags, int kind) unsigned short flags, int kind)
{ {
int i; int i;
int company, verstep ; int company, verstep ;
@@ -921,7 +921,7 @@ int lm85_detect(struct i2c_adapter *adapter, int address,
return err; return err;
} }
int lm85_detach_client(struct i2c_client *client) static int lm85_detach_client(struct i2c_client *client)
{ {
int err; int err;
int id ; int id ;
@@ -940,7 +940,7 @@ int lm85_detach_client(struct i2c_client *client)
return 0; return 0;
} }
int lm85_read_value(struct i2c_client *client, u16 reg) static int lm85_read_value(struct i2c_client *client, u16 reg)
{ {
int res; int res;
@@ -974,7 +974,7 @@ int lm85_read_value(struct i2c_client *client, u16 reg)
return res ; return res ;
} }
int lm85_write_value(struct i2c_client *client, u16 reg, int value) static int lm85_write_value(struct i2c_client *client, u16 reg, int value)
{ {
int res ; int res ;
@@ -1007,7 +1007,7 @@ int lm85_write_value(struct i2c_client *client, u16 reg, int value)
} }
/* Called when we have found a new LM85. */ /* Called when we have found a new LM85. */
void lm85_init_client(struct i2c_client *client) static void lm85_init_client(struct i2c_client *client)
{ {
int value; int value;
struct lm85_data *data = client->data; struct lm85_data *data = client->data;
@@ -1091,7 +1091,7 @@ void lm85_init_client(struct i2c_client *client)
} }
void lm85_update_client(struct i2c_client *client) static void lm85_update_client(struct i2c_client *client)
{ {
struct lm85_data *data = client->data; struct lm85_data *data = client->data;
int i; int i;
+2 -2
View File
@@ -120,8 +120,8 @@ static int pcf8574_attach_adapter(struct i2c_adapter *adapter)
} }
/* This function is called by i2c_detect */ /* This function is called by i2c_detect */
int pcf8574_detect(struct i2c_adapter *adapter, int address, static int pcf8574_detect(struct i2c_adapter *adapter, int address,
unsigned short flags, int kind) unsigned short flags, int kind)
{ {
int i; int i;
struct i2c_client *new_client; struct i2c_client *new_client;
+2 -2
View File
@@ -155,8 +155,8 @@ static int pcf8591_attach_adapter(struct i2c_adapter *adapter)
} }
/* This function is called by i2c_detect */ /* This function is called by i2c_detect */
int pcf8591_detect(struct i2c_adapter *adapter, int address, static int pcf8591_detect(struct i2c_adapter *adapter, int address,
unsigned short flags, int kind) unsigned short flags, int kind)
{ {
int i; int i;
struct i2c_client *new_client; struct i2c_client *new_client;