mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-21 11:39:31 +00:00
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:
1 parent
f1849c2f56
commit
2dfd3d5b47
10 files changed
+34
-34
No files matched your search
+10
-10
@@ -603,14 +603,14 @@ static ctl_table adm1026_common[] = {
|
||||
* the module 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);
|
||||
}
|
||||
|
||||
/* This function is called by i2c_detect */
|
||||
int adm1026_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
static int adm1026_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
{
|
||||
int i;
|
||||
int company, verstep ;
|
||||
@@ -769,7 +769,7 @@ int adm1026_detect(struct i2c_adapter *adapter, int address,
|
||||
return err;
|
||||
}
|
||||
|
||||
int adm1026_detach_client(struct i2c_client *client)
|
||||
static int adm1026_detach_client(struct i2c_client *client)
|
||||
{
|
||||
int err;
|
||||
int id ;
|
||||
@@ -788,7 +788,7 @@ int adm1026_detach_client(struct i2c_client *client)
|
||||
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;
|
||||
|
||||
@@ -803,7 +803,7 @@ int adm1026_read_value(struct i2c_client *client, u8 reg)
|
||||
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 ;
|
||||
|
||||
@@ -819,7 +819,7 @@ int adm1026_write_value(struct i2c_client *client, u8 reg, int value)
|
||||
}
|
||||
|
||||
/* 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 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;
|
||||
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;
|
||||
int i ;
|
||||
@@ -1027,7 +1027,7 @@ void adm1026_fixup_gpio(struct i2c_client *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;
|
||||
int i;
|
||||
|
||||
@@ -159,8 +159,8 @@ static int ds1621_attach_adapter(struct i2c_adapter *adapter)
|
||||
}
|
||||
|
||||
/* This function is called by i2c_detect */
|
||||
int ds1621_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
static int ds1621_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
{
|
||||
int i, conf, temp;
|
||||
struct i2c_client *new_client;
|
||||
|
||||
@@ -157,8 +157,8 @@ static int eeprom_attach_adapter(struct i2c_adapter *adapter)
|
||||
}
|
||||
|
||||
/* This function is called by i2c_detect */
|
||||
int eeprom_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
static int eeprom_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
{
|
||||
int i;
|
||||
struct i2c_client *new_client;
|
||||
|
||||
@@ -223,8 +223,8 @@ static int fscpos_attach_adapter(struct i2c_adapter *adapter)
|
||||
return i2c_detect(adapter, &addr_data, fscpos_detect);
|
||||
}
|
||||
|
||||
int fscpos_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
static int fscpos_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
{
|
||||
int i;
|
||||
struct i2c_client *new_client;
|
||||
|
||||
+2
-2
@@ -100,8 +100,8 @@ static int lm75_attach_adapter(struct i2c_adapter *adapter)
|
||||
}
|
||||
|
||||
/* This function is called by i2c_detect */
|
||||
int lm75_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
static int lm75_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
{
|
||||
int i;
|
||||
struct i2c_client *new_client;
|
||||
|
||||
+2
-2
@@ -256,8 +256,8 @@ static int lm78_attach_adapter(struct i2c_adapter *adapter)
|
||||
}
|
||||
|
||||
/* This function is called by i2c_detect */
|
||||
int lm78_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
static int lm78_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
{
|
||||
int i;
|
||||
struct i2c_client *new_client;
|
||||
|
||||
+2
-2
@@ -232,8 +232,8 @@ static int lm80_attach_adapter(struct i2c_adapter *adapter)
|
||||
return i2c_detect(adapter, &addr_data, lm80_detect);
|
||||
}
|
||||
|
||||
int lm80_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
static int lm80_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
{
|
||||
int i, cur;
|
||||
struct i2c_client *new_client;
|
||||
|
||||
+8
-8
@@ -693,14 +693,14 @@ static ctl_table emc6d100_specific[] = {
|
||||
* lm85_driver is inserted (when this module is loaded), for each
|
||||
available adapter
|
||||
* 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);
|
||||
}
|
||||
|
||||
/* This function is called by i2c_detect */
|
||||
int lm85_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
static int lm85_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
{
|
||||
int i;
|
||||
int company, verstep ;
|
||||
@@ -921,7 +921,7 @@ int lm85_detect(struct i2c_adapter *adapter, int address,
|
||||
return err;
|
||||
}
|
||||
|
||||
int lm85_detach_client(struct i2c_client *client)
|
||||
static int lm85_detach_client(struct i2c_client *client)
|
||||
{
|
||||
int err;
|
||||
int id ;
|
||||
@@ -940,7 +940,7 @@ int lm85_detach_client(struct i2c_client *client)
|
||||
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;
|
||||
|
||||
@@ -974,7 +974,7 @@ int lm85_read_value(struct i2c_client *client, u16 reg)
|
||||
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 ;
|
||||
|
||||
@@ -1007,7 +1007,7 @@ int lm85_write_value(struct i2c_client *client, u16 reg, int value)
|
||||
}
|
||||
|
||||
/* 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;
|
||||
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;
|
||||
int i;
|
||||
|
||||
@@ -120,8 +120,8 @@ static int pcf8574_attach_adapter(struct i2c_adapter *adapter)
|
||||
}
|
||||
|
||||
/* This function is called by i2c_detect */
|
||||
int pcf8574_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
static int pcf8574_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
{
|
||||
int i;
|
||||
struct i2c_client *new_client;
|
||||
|
||||
@@ -155,8 +155,8 @@ static int pcf8591_attach_adapter(struct i2c_adapter *adapter)
|
||||
}
|
||||
|
||||
/* This function is called by i2c_detect */
|
||||
int pcf8591_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
static int pcf8591_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
{
|
||||
int i;
|
||||
struct i2c_client *new_client;
|
||||
|
||||
Reference in new issue
Block a user