diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwmon/lm78.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/lm85.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c index 924462362743..bde0cda9477e 100644 --- a/drivers/hwmon/lm78.c +++ b/drivers/hwmon/lm78.c | |||
@@ -480,7 +480,7 @@ static int lm78_isa_attach_adapter(struct i2c_adapter *adapter) | |||
480 | } | 480 | } |
481 | 481 | ||
482 | /* This function is called by i2c_probe */ | 482 | /* This function is called by i2c_probe */ |
483 | int lm78_detect(struct i2c_adapter *adapter, int address, int kind) | 483 | static int lm78_detect(struct i2c_adapter *adapter, int address, int kind) |
484 | { | 484 | { |
485 | int i, err; | 485 | int i, err; |
486 | struct i2c_client *new_client; | 486 | struct i2c_client *new_client; |
diff --git a/drivers/hwmon/lm85.c b/drivers/hwmon/lm85.c index d5537a5377f7..d1070ed2bee6 100644 --- a/drivers/hwmon/lm85.c +++ b/drivers/hwmon/lm85.c | |||
@@ -1007,14 +1007,14 @@ temp_auto(1); | |||
1007 | temp_auto(2); | 1007 | temp_auto(2); |
1008 | temp_auto(3); | 1008 | temp_auto(3); |
1009 | 1009 | ||
1010 | int lm85_attach_adapter(struct i2c_adapter *adapter) | 1010 | static int lm85_attach_adapter(struct i2c_adapter *adapter) |
1011 | { | 1011 | { |
1012 | if (!(adapter->class & I2C_CLASS_HWMON)) | 1012 | if (!(adapter->class & I2C_CLASS_HWMON)) |
1013 | return 0; | 1013 | return 0; |
1014 | return i2c_probe(adapter, &addr_data, lm85_detect); | 1014 | return i2c_probe(adapter, &addr_data, lm85_detect); |
1015 | } | 1015 | } |
1016 | 1016 | ||
1017 | int lm85_detect(struct i2c_adapter *adapter, int address, | 1017 | static int lm85_detect(struct i2c_adapter *adapter, int address, |
1018 | int kind) | 1018 | int kind) |
1019 | { | 1019 | { |
1020 | int company, verstep ; | 1020 | int company, verstep ; |
@@ -1235,7 +1235,7 @@ int lm85_detect(struct i2c_adapter *adapter, int address, | |||
1235 | return err; | 1235 | return err; |
1236 | } | 1236 | } |
1237 | 1237 | ||
1238 | int lm85_detach_client(struct i2c_client *client) | 1238 | static int lm85_detach_client(struct i2c_client *client) |
1239 | { | 1239 | { |
1240 | struct lm85_data *data = i2c_get_clientdata(client); | 1240 | struct lm85_data *data = i2c_get_clientdata(client); |
1241 | hwmon_device_unregister(data->class_dev); | 1241 | hwmon_device_unregister(data->class_dev); |
@@ -1245,7 +1245,7 @@ int lm85_detach_client(struct i2c_client *client) | |||
1245 | } | 1245 | } |
1246 | 1246 | ||
1247 | 1247 | ||
1248 | int lm85_read_value(struct i2c_client *client, u8 reg) | 1248 | static int lm85_read_value(struct i2c_client *client, u8 reg) |
1249 | { | 1249 | { |
1250 | int res; | 1250 | int res; |
1251 | 1251 | ||
@@ -1275,7 +1275,7 @@ int lm85_read_value(struct i2c_client *client, u8 reg) | |||
1275 | return res ; | 1275 | return res ; |
1276 | } | 1276 | } |
1277 | 1277 | ||
1278 | int lm85_write_value(struct i2c_client *client, u8 reg, int value) | 1278 | static int lm85_write_value(struct i2c_client *client, u8 reg, int value) |
1279 | { | 1279 | { |
1280 | int res ; | 1280 | int res ; |
1281 | 1281 | ||
@@ -1304,7 +1304,7 @@ int lm85_write_value(struct i2c_client *client, u8 reg, int value) | |||
1304 | return res ; | 1304 | return res ; |
1305 | } | 1305 | } |
1306 | 1306 | ||
1307 | void lm85_init_client(struct i2c_client *client) | 1307 | static void lm85_init_client(struct i2c_client *client) |
1308 | { | 1308 | { |
1309 | int value; | 1309 | int value; |
1310 | struct lm85_data *data = i2c_get_clientdata(client); | 1310 | struct lm85_data *data = i2c_get_clientdata(client); |