diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-10-08 12:24:35 -0400 |
---|---|---|
committer | Mark M. Hoffman <mhoffman@lightlink.com> | 2007-10-09 22:56:32 -0400 |
commit | 90d6619a916062cb75a176aacb318d108758b4a5 (patch) | |
tree | 4178d9061f8f85538820270afe50f8b3f5be9fb3 /drivers/hwmon/it87.c | |
parent | a1aa5a770dc31dc7e88313ddd2a76e0a875b9b43 (diff) |
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/it87.c')
-rw-r--r-- | drivers/hwmon/it87.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index cd741b79c178..6a182e14cf58 100644 --- a/drivers/hwmon/it87.c +++ b/drivers/hwmon/it87.c | |||
@@ -765,7 +765,7 @@ static DEVICE_ATTR(alarms, S_IRUGO, show_alarms, NULL); | |||
765 | static ssize_t | 765 | static ssize_t |
766 | show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf) | 766 | show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf) |
767 | { | 767 | { |
768 | struct it87_data *data = it87_update_device(dev); | 768 | struct it87_data *data = dev_get_drvdata(dev); |
769 | return sprintf(buf, "%u\n", data->vrm); | 769 | return sprintf(buf, "%u\n", data->vrm); |
770 | } | 770 | } |
771 | static ssize_t | 771 | static ssize_t |