diff options
author | Yani Ioannou <yani.ioannou@gmail.com> | 2005-05-17 06:42:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-20 18:15:33 -0400 |
commit | 8627f9ba531269d8850919c62af1b017438e2e79 (patch) | |
tree | ed560594954e5e2303c98bbc8fb83ec7e0dec661 /drivers/i2c/chips/lm83.c | |
parent | 30f74292e50d6c4ae438dbee5cb45d77bf774351 (diff) |
[PATCH] Driver Core: drivers/i2c/chips/lm77.c - max1619.c: update device attribute callbacks
Signed-off-by: Yani Ioannou <yani.ioannou@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c/chips/lm83.c')
-rw-r--r-- | drivers/i2c/chips/lm83.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/i2c/chips/lm83.c b/drivers/i2c/chips/lm83.c index 3dafe60766a..4d6d7d21e14 100644 --- a/drivers/i2c/chips/lm83.c +++ b/drivers/i2c/chips/lm83.c | |||
@@ -155,7 +155,7 @@ struct lm83_data { | |||
155 | */ | 155 | */ |
156 | 156 | ||
157 | #define show_temp(suffix, value) \ | 157 | #define show_temp(suffix, value) \ |
158 | static ssize_t show_temp_##suffix(struct device *dev, char *buf) \ | 158 | static ssize_t show_temp_##suffix(struct device *dev, struct device_attribute *attr, char *buf) \ |
159 | { \ | 159 | { \ |
160 | struct lm83_data *data = lm83_update_device(dev); \ | 160 | struct lm83_data *data = lm83_update_device(dev); \ |
161 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->value)); \ | 161 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->value)); \ |
@@ -171,7 +171,7 @@ show_temp(high4, temp_high[3]); | |||
171 | show_temp(crit, temp_crit); | 171 | show_temp(crit, temp_crit); |
172 | 172 | ||
173 | #define set_temp(suffix, value, reg) \ | 173 | #define set_temp(suffix, value, reg) \ |
174 | static ssize_t set_temp_##suffix(struct device *dev, const char *buf, \ | 174 | static ssize_t set_temp_##suffix(struct device *dev, struct device_attribute *attr, const char *buf, \ |
175 | size_t count) \ | 175 | size_t count) \ |
176 | { \ | 176 | { \ |
177 | struct i2c_client *client = to_i2c_client(dev); \ | 177 | struct i2c_client *client = to_i2c_client(dev); \ |
@@ -190,7 +190,7 @@ set_temp(high3, temp_high[2], LM83_REG_W_REMOTE2_HIGH); | |||
190 | set_temp(high4, temp_high[3], LM83_REG_W_REMOTE3_HIGH); | 190 | set_temp(high4, temp_high[3], LM83_REG_W_REMOTE3_HIGH); |
191 | set_temp(crit, temp_crit, LM83_REG_W_TCRIT); | 191 | set_temp(crit, temp_crit, LM83_REG_W_TCRIT); |
192 | 192 | ||
193 | static ssize_t show_alarms(struct device *dev, char *buf) | 193 | static ssize_t show_alarms(struct device *dev, struct device_attribute *attr, char *buf) |
194 | { | 194 | { |
195 | struct lm83_data *data = lm83_update_device(dev); | 195 | struct lm83_data *data = lm83_update_device(dev); |
196 | return sprintf(buf, "%d\n", data->alarms); | 196 | return sprintf(buf, "%d\n", data->alarms); |