Commit d8d20615 authored by Ben Dooks's avatar Ben Dooks Committed by Greg Kroah-Hartman

[PATCH] hwmon: Static function fixes, 2 of 4

lm78.c and lm85.c have a number of items declared static
then implemented without the static on them. The following
patch fixes these sparse errors.
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6536c49a
...@@ -480,7 +480,7 @@ static int lm78_isa_attach_adapter(struct i2c_adapter *adapter) ...@@ -480,7 +480,7 @@ static int lm78_isa_attach_adapter(struct i2c_adapter *adapter)
} }
/* This function is called by i2c_probe */ /* This function is called by i2c_probe */
int lm78_detect(struct i2c_adapter *adapter, int address, int kind) static int lm78_detect(struct i2c_adapter *adapter, int address, int kind)
{ {
int i, err; int i, err;
struct i2c_client *new_client; struct i2c_client *new_client;
......
...@@ -1007,14 +1007,14 @@ temp_auto(1); ...@@ -1007,14 +1007,14 @@ temp_auto(1);
temp_auto(2); temp_auto(2);
temp_auto(3); temp_auto(3);
int lm85_attach_adapter(struct i2c_adapter *adapter) static int lm85_attach_adapter(struct i2c_adapter *adapter)
{ {
if (!(adapter->class & I2C_CLASS_HWMON)) if (!(adapter->class & I2C_CLASS_HWMON))
return 0; return 0;
return i2c_probe(adapter, &addr_data, lm85_detect); return i2c_probe(adapter, &addr_data, lm85_detect);
} }
int lm85_detect(struct i2c_adapter *adapter, int address, static int lm85_detect(struct i2c_adapter *adapter, int address,
int kind) int kind)
{ {
int company, verstep ; int company, verstep ;
...@@ -1235,7 +1235,7 @@ int lm85_detect(struct i2c_adapter *adapter, int address, ...@@ -1235,7 +1235,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)
{ {
struct lm85_data *data = i2c_get_clientdata(client); struct lm85_data *data = i2c_get_clientdata(client);
hwmon_device_unregister(data->class_dev); hwmon_device_unregister(data->class_dev);
...@@ -1245,7 +1245,7 @@ int lm85_detach_client(struct i2c_client *client) ...@@ -1245,7 +1245,7 @@ int lm85_detach_client(struct i2c_client *client)
} }
int lm85_read_value(struct i2c_client *client, u8 reg) static int lm85_read_value(struct i2c_client *client, u8 reg)
{ {
int res; int res;
...@@ -1275,7 +1275,7 @@ int lm85_read_value(struct i2c_client *client, u8 reg) ...@@ -1275,7 +1275,7 @@ int lm85_read_value(struct i2c_client *client, u8 reg)
return res ; return res ;
} }
int lm85_write_value(struct i2c_client *client, u8 reg, int value) static int lm85_write_value(struct i2c_client *client, u8 reg, int value)
{ {
int res ; int res ;
...@@ -1304,7 +1304,7 @@ int lm85_write_value(struct i2c_client *client, u8 reg, int value) ...@@ -1304,7 +1304,7 @@ int lm85_write_value(struct i2c_client *client, u8 reg, int value)
return res ; return res ;
} }
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 = i2c_get_clientdata(client); struct lm85_data *data = i2c_get_clientdata(client);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment