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

+8 -8
View File
@@ -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;