diff options
Diffstat (limited to 'drivers/i2c/chips/max1619.c')
-rw-r--r-- | drivers/i2c/chips/max1619.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/i2c/chips/max1619.c b/drivers/i2c/chips/max1619.c index 5afa961a5e10..30a196155fd9 100644 --- a/drivers/i2c/chips/max1619.c +++ b/drivers/i2c/chips/max1619.c | |||
@@ -122,7 +122,7 @@ struct max1619_data { | |||
122 | */ | 122 | */ |
123 | 123 | ||
124 | #define show_temp(value) \ | 124 | #define show_temp(value) \ |
125 | static ssize_t show_##value(struct device *dev, char *buf) \ | 125 | static ssize_t show_##value(struct device *dev, struct device_attribute *attr, char *buf) \ |
126 | { \ | 126 | { \ |
127 | struct max1619_data *data = max1619_update_device(dev); \ | 127 | struct max1619_data *data = max1619_update_device(dev); \ |
128 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->value)); \ | 128 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->value)); \ |
@@ -135,7 +135,7 @@ show_temp(temp_crit2); | |||
135 | show_temp(temp_hyst2); | 135 | show_temp(temp_hyst2); |
136 | 136 | ||
137 | #define set_temp2(value, reg) \ | 137 | #define set_temp2(value, reg) \ |
138 | static ssize_t set_##value(struct device *dev, const char *buf, \ | 138 | static ssize_t set_##value(struct device *dev, struct device_attribute *attr, const char *buf, \ |
139 | size_t count) \ | 139 | size_t count) \ |
140 | { \ | 140 | { \ |
141 | struct i2c_client *client = to_i2c_client(dev); \ | 141 | struct i2c_client *client = to_i2c_client(dev); \ |
@@ -154,7 +154,7 @@ set_temp2(temp_high2, MAX1619_REG_W_REMOTE_HIGH); | |||
154 | set_temp2(temp_crit2, MAX1619_REG_W_REMOTE_CRIT); | 154 | set_temp2(temp_crit2, MAX1619_REG_W_REMOTE_CRIT); |
155 | set_temp2(temp_hyst2, MAX1619_REG_W_TCRIT_HYST); | 155 | set_temp2(temp_hyst2, MAX1619_REG_W_TCRIT_HYST); |
156 | 156 | ||
157 | static ssize_t show_alarms(struct device *dev, char *buf) | 157 | static ssize_t show_alarms(struct device *dev, struct device_attribute *attr, char *buf) |
158 | { | 158 | { |
159 | struct max1619_data *data = max1619_update_device(dev); | 159 | struct max1619_data *data = max1619_update_device(dev); |
160 | return sprintf(buf, "%d\n", data->alarms); | 160 | return sprintf(buf, "%d\n", data->alarms); |