diff options
-rw-r--r-- | drivers/hwmon/adm1025.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/adm1026.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/asb100.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/it87.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/lm85.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/lm87.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/pc87360.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/smsc47m192.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/w83627hf.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/w83781d.c | 2 | ||||
-rw-r--r-- | drivers/hwmon/w83791d.c | 2 |
11 files changed, 11 insertions, 11 deletions
diff --git a/drivers/hwmon/adm1025.c b/drivers/hwmon/adm1025.c index a67e133bfd3c..041ecb0bdf48 100644 --- a/drivers/hwmon/adm1025.c +++ b/drivers/hwmon/adm1025.c | |||
@@ -292,7 +292,7 @@ static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid, NULL); | |||
292 | 292 | ||
293 | static ssize_t show_vrm(struct device *dev, struct device_attribute *attr, char *buf) | 293 | static ssize_t show_vrm(struct device *dev, struct device_attribute *attr, char *buf) |
294 | { | 294 | { |
295 | struct adm1025_data *data = adm1025_update_device(dev); | 295 | struct adm1025_data *data = dev_get_drvdata(dev); |
296 | return sprintf(buf, "%u\n", data->vrm); | 296 | return sprintf(buf, "%u\n", data->vrm); |
297 | } | 297 | } |
298 | static ssize_t set_vrm(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) | 298 | static ssize_t set_vrm(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
diff --git a/drivers/hwmon/adm1026.c b/drivers/hwmon/adm1026.c index b85370c7358b..aa875ca50d9b 100644 --- a/drivers/hwmon/adm1026.c +++ b/drivers/hwmon/adm1026.c | |||
@@ -1221,7 +1221,7 @@ static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid_reg, NULL); | |||
1221 | 1221 | ||
1222 | static ssize_t show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf) | 1222 | static ssize_t show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf) |
1223 | { | 1223 | { |
1224 | struct adm1026_data *data = adm1026_update_device(dev); | 1224 | struct adm1026_data *data = dev_get_drvdata(dev); |
1225 | return sprintf(buf,"%d\n", data->vrm); | 1225 | return sprintf(buf,"%d\n", data->vrm); |
1226 | } | 1226 | } |
1227 | static ssize_t store_vrm_reg(struct device *dev, struct device_attribute *attr, const char *buf, | 1227 | static ssize_t store_vrm_reg(struct device *dev, struct device_attribute *attr, const char *buf, |
diff --git a/drivers/hwmon/asb100.c b/drivers/hwmon/asb100.c index 745bf264bcfd..9460dba4cf74 100644 --- a/drivers/hwmon/asb100.c +++ b/drivers/hwmon/asb100.c | |||
@@ -514,7 +514,7 @@ static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid, NULL); | |||
514 | /* VRM */ | 514 | /* VRM */ |
515 | static ssize_t show_vrm(struct device *dev, struct device_attribute *attr, char *buf) | 515 | static ssize_t show_vrm(struct device *dev, struct device_attribute *attr, char *buf) |
516 | { | 516 | { |
517 | struct asb100_data *data = asb100_update_device(dev); | 517 | struct asb100_data *data = dev_get_drvdata(dev); |
518 | return sprintf(buf, "%d\n", data->vrm); | 518 | return sprintf(buf, "%d\n", data->vrm); |
519 | } | 519 | } |
520 | 520 | ||
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 |
diff --git a/drivers/hwmon/lm85.c b/drivers/hwmon/lm85.c index 2ca616d7c1c0..a02480be65f2 100644 --- a/drivers/hwmon/lm85.c +++ b/drivers/hwmon/lm85.c | |||
@@ -438,7 +438,7 @@ static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid_reg, NULL); | |||
438 | 438 | ||
439 | static ssize_t show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf) | 439 | static ssize_t show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf) |
440 | { | 440 | { |
441 | struct lm85_data *data = lm85_update_device(dev); | 441 | struct lm85_data *data = dev_get_drvdata(dev); |
442 | return sprintf(buf, "%ld\n", (long) data->vrm); | 442 | return sprintf(buf, "%ld\n", (long) data->vrm); |
443 | } | 443 | } |
444 | 444 | ||
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 | ||
502 | static ssize_t show_vrm(struct device *dev, struct device_attribute *attr, char *buf) | 502 | static 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 | } |
507 | static ssize_t set_vrm(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) | 507 | static ssize_t set_vrm(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
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); | |||
500 | 500 | ||
501 | static ssize_t show_vrm(struct device *dev, struct device_attribute *attr, char *buf) | 501 | static ssize_t show_vrm(struct device *dev, struct device_attribute *attr, char *buf) |
502 | { | 502 | { |
503 | struct pc87360_data *data = pc87360_update_device(dev); | 503 | struct pc87360_data *data = dev_get_drvdata(dev); |
504 | return sprintf(buf, "%u\n", data->vrm); | 504 | return sprintf(buf, "%u\n", data->vrm); |
505 | } | 505 | } |
506 | static ssize_t set_vrm(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) | 506 | static ssize_t set_vrm(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |
diff --git a/drivers/hwmon/smsc47m192.c b/drivers/hwmon/smsc47m192.c index 0efcd27b2523..b87552652588 100644 --- a/drivers/hwmon/smsc47m192.c +++ b/drivers/hwmon/smsc47m192.c | |||
@@ -334,7 +334,7 @@ static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid, NULL); | |||
334 | static ssize_t show_vrm(struct device *dev, struct device_attribute *attr, | 334 | static ssize_t show_vrm(struct device *dev, struct device_attribute *attr, |
335 | char *buf) | 335 | char *buf) |
336 | { | 336 | { |
337 | struct smsc47m192_data *data = smsc47m192_update_device(dev); | 337 | struct smsc47m192_data *data = dev_get_drvdata(dev); |
338 | return sprintf(buf, "%d\n", data->vrm); | 338 | return sprintf(buf, "%d\n", data->vrm); |
339 | } | 339 | } |
340 | 340 | ||
diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c index b1943ec29c48..a2ccf93521c1 100644 --- a/drivers/hwmon/w83627hf.c +++ b/drivers/hwmon/w83627hf.c | |||
@@ -703,7 +703,7 @@ static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid_reg, NULL); | |||
703 | static ssize_t | 703 | static ssize_t |
704 | show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf) | 704 | show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf) |
705 | { | 705 | { |
706 | struct w83627hf_data *data = w83627hf_update_device(dev); | 706 | struct w83627hf_data *data = dev_get_drvdata(dev); |
707 | return sprintf(buf, "%ld\n", (long) data->vrm); | 707 | return sprintf(buf, "%ld\n", (long) data->vrm); |
708 | } | 708 | } |
709 | static ssize_t | 709 | static ssize_t |
diff --git a/drivers/hwmon/w83781d.c b/drivers/hwmon/w83781d.c index e622ec5b092e..d2cb9978a2a2 100644 --- a/drivers/hwmon/w83781d.c +++ b/drivers/hwmon/w83781d.c | |||
@@ -454,7 +454,7 @@ static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid_reg, NULL); | |||
454 | static ssize_t | 454 | static ssize_t |
455 | show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf) | 455 | show_vrm_reg(struct device *dev, struct device_attribute *attr, char *buf) |
456 | { | 456 | { |
457 | struct w83781d_data *data = w83781d_update_device(dev); | 457 | struct w83781d_data *data = dev_get_drvdata(dev); |
458 | return sprintf(buf, "%ld\n", (long) data->vrm); | 458 | return sprintf(buf, "%ld\n", (long) data->vrm); |
459 | } | 459 | } |
460 | 460 | ||
diff --git a/drivers/hwmon/w83791d.c b/drivers/hwmon/w83791d.c index de4eb3e7b271..b6f2ebf9f9cf 100644 --- a/drivers/hwmon/w83791d.c +++ b/drivers/hwmon/w83791d.c | |||
@@ -832,7 +832,7 @@ static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid_reg, NULL); | |||
832 | static ssize_t show_vrm_reg(struct device *dev, | 832 | static ssize_t show_vrm_reg(struct device *dev, |
833 | struct device_attribute *attr, char *buf) | 833 | struct device_attribute *attr, char *buf) |
834 | { | 834 | { |
835 | struct w83791d_data *data = w83791d_update_device(dev); | 835 | struct w83791d_data *data = dev_get_drvdata(dev); |
836 | return sprintf(buf, "%d\n", data->vrm); | 836 | return sprintf(buf, "%d\n", data->vrm); |
837 | } | 837 | } |
838 | 838 | ||