summaryrefslogtreecommitdiff
path: root/drivers/hwmon/pc87360.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2007-10-08 20:24:35 +0400
committerMark M. Hoffman <mhoffman@lightlink.com>2007-10-10 06:56:32 +0400
commit90d6619a916062cb75a176aacb318d108758b4a5 (patch)
tree4178d9061f8f85538820270afe50f8b3f5be9fb3 /drivers/hwmon/pc87360.c
parenta1aa5a770dc31dc7e88313ddd2a76e0a875b9b43 (diff)
downloadlinux-90d6619a916062cb75a176aacb318d108758b4a5.tar.xz
hwmon: VRM is not read from registers
The VRM value is not read from chip registers, so there's no need to update the device data cache before exporting the VRM value to user-space. Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'drivers/hwmon/pc87360.c')
-rw-r--r--drivers/hwmon/pc87360.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pc87360.c b/drivers/hwmon/pc87360.c
index 91cf51034b56..9d660133d517 100644
--- a/drivers/hwmon/pc87360.c
+++ b/drivers/hwmon/pc87360.c
@@ -500,7 +500,7 @@ static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid, NULL);
static ssize_t show_vrm(struct device *dev, struct device_attribute *attr, char *buf)
{
- struct pc87360_data *data = pc87360_update_device(dev);
+ struct pc87360_data *data = dev_get_drvdata(dev);
return sprintf(buf, "%u\n", data->vrm);
}
static ssize_t set_vrm(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)