diff options
author | Yani Ioannou <yani.ioannou@gmail.com> | 2005-05-17 06:42:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-20 18:15:34 -0400 |
commit | e404e274f62665f3333d6a539d0d3701f678a598 (patch) | |
tree | ef6618291524edaab45c4123274730c7d57ae852 /drivers/i2c/chips/w83l785ts.c | |
parent | a5099cfc2e82240b0a3e72ad79a5969d5af1a7dc (diff) |
[PATCH] Driver Core: drivers/i2c/chips/w83781d.c - drivers/s390/block/dcssblk.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/w83l785ts.c')
-rw-r--r-- | drivers/i2c/chips/w83l785ts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/chips/w83l785ts.c b/drivers/i2c/chips/w83l785ts.c index 59bbc5881fa6..74d4b58e4237 100644 --- a/drivers/i2c/chips/w83l785ts.c +++ b/drivers/i2c/chips/w83l785ts.c | |||
@@ -118,13 +118,13 @@ struct w83l785ts_data { | |||
118 | * Sysfs stuff | 118 | * Sysfs stuff |
119 | */ | 119 | */ |
120 | 120 | ||
121 | static ssize_t show_temp(struct device *dev, char *buf) | 121 | static ssize_t show_temp(struct device *dev, struct device_attribute *attr, char *buf) |
122 | { | 122 | { |
123 | struct w83l785ts_data *data = w83l785ts_update_device(dev); | 123 | struct w83l785ts_data *data = w83l785ts_update_device(dev); |
124 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); | 124 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp)); |
125 | } | 125 | } |
126 | 126 | ||
127 | static ssize_t show_temp_over(struct device *dev, char *buf) | 127 | static ssize_t show_temp_over(struct device *dev, struct device_attribute *attr, char *buf) |
128 | { | 128 | { |
129 | struct w83l785ts_data *data = w83l785ts_update_device(dev); | 129 | struct w83l785ts_data *data = w83l785ts_update_device(dev); |
130 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); | 130 | return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_over)); |