aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm87.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/lm87.c')
-rw-r--r--drivers/hwmon/lm87.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lm87.c b/drivers/hwmon/lm87.c
index 86537af0a0b5..7f806a05890d 100644
--- a/drivers/hwmon/lm87.c
+++ b/drivers/hwmon/lm87.c
@@ -501,7 +501,7 @@ static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid, NULL);
501 501
502static ssize_t show_vrm(struct device *dev, struct device_attribute *attr, char *buf) 502static ssize_t show_vrm(struct device *dev, struct device_attribute *attr, char *buf)
503{ 503{
504 struct lm87_data *data = lm87_update_device(dev); 504 struct lm87_data *data = dev_get_drvdata(dev);
505 return sprintf(buf, "%d\n", data->vrm); 505 return sprintf(buf, "%d\n", data->vrm);
506} 506}
507static ssize_t set_vrm(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) 507static ssize_t set_vrm(struct device *dev, struct device_attribute *attr, const char *buf, size_t count)