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/macintosh/therm_windtunnel.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/macintosh/therm_windtunnel.c')
-rw-r--r-- | drivers/macintosh/therm_windtunnel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c index c153699d0f84..0bdb47f08c2a 100644 --- a/drivers/macintosh/therm_windtunnel.c +++ b/drivers/macintosh/therm_windtunnel.c | |||
@@ -107,13 +107,13 @@ print_temp( const char *s, int temp ) | |||
107 | } | 107 | } |
108 | 108 | ||
109 | static ssize_t | 109 | static ssize_t |
110 | show_cpu_temperature( struct device *dev, char *buf ) | 110 | show_cpu_temperature( struct device *dev, struct device_attribute *attr, char *buf ) |
111 | { | 111 | { |
112 | return sprintf(buf, "%d.%d\n", x.temp>>8, (x.temp & 255)*10/256 ); | 112 | return sprintf(buf, "%d.%d\n", x.temp>>8, (x.temp & 255)*10/256 ); |
113 | } | 113 | } |
114 | 114 | ||
115 | static ssize_t | 115 | static ssize_t |
116 | show_case_temperature( struct device *dev, char *buf ) | 116 | show_case_temperature( struct device *dev, struct device_attribute *attr, char *buf ) |
117 | { | 117 | { |
118 | return sprintf(buf, "%d.%d\n", x.casetemp>>8, (x.casetemp & 255)*10/256 ); | 118 | return sprintf(buf, "%d.%d\n", x.casetemp>>8, (x.casetemp & 255)*10/256 ); |
119 | } | 119 | } |