diff options
Diffstat (limited to 'drivers/i2c/chips/w83l785ts.c')
-rw-r--r-- | drivers/i2c/chips/w83l785ts.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/i2c/chips/w83l785ts.c b/drivers/i2c/chips/w83l785ts.c index 59bbc5881fa6..4469d52aba4c 100644 --- a/drivers/i2c/chips/w83l785ts.c +++ b/drivers/i2c/chips/w83l785ts.c | |||
@@ -30,7 +30,6 @@ | |||
30 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 30 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #include <linux/config.h> | ||
34 | #include <linux/module.h> | 33 | #include <linux/module.h> |
35 | #include <linux/delay.h> | 34 | #include <linux/delay.h> |
36 | #include <linux/init.h> | 35 | #include <linux/init.h> |
@@ -118,13 +117,13 @@ struct w83l785ts_data { | |||
118 | * Sysfs stuff | 117 | * Sysfs stuff |
119 | */ | 118 | */ |
120 | 119 | ||
121 | static ssize_t show_temp(struct device *dev, char *buf) | 120 | static ssize_t show_temp(struct device *dev, struct device_attribute *attr, char *buf) |
122 | { | 121 | { |
123 | struct w83l785ts_data *data = w83l785ts_update_device(dev); | 122 | struct w83l785ts_data *data = w83l785ts_update_device(dev); |
124 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); | 123 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); |
125 | } | 124 | } |
126 | 125 | ||
127 | static ssize_t show_temp_over(struct device *dev, char *buf) | 126 | static ssize_t show_temp_over(struct device *dev, struct device_attribute *attr, char *buf) |
128 | { | 127 | { |
129 | struct w83l785ts_data *data = w83l785ts_update_device(dev); | 128 | struct w83l785ts_data *data = w83l785ts_update_device(dev); |
130 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); | 129 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); |