[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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a5099cfc2e
commit
e404e274f6
@ -107,13 +107,13 @@ print_temp( const char *s, int temp )
|
||||
}
|
||||
|
||||
static ssize_t
|
||||
show_cpu_temperature( struct device *dev, char *buf )
|
||||
show_cpu_temperature( struct device *dev, struct device_attribute *attr, char *buf )
|
||||
{
|
||||
return sprintf(buf, "%d.%d\n", x.temp>>8, (x.temp & 255)*10/256 );
|
||||
}
|
||||
|
||||
static ssize_t
|
||||
show_case_temperature( struct device *dev, char *buf )
|
||||
show_case_temperature( struct device *dev, struct device_attribute *attr, char *buf )
|
||||
{
|
||||
return sprintf(buf, "%d.%d\n", x.casetemp>>8, (x.casetemp & 255)*10/256 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user