[PATCH] hwmon: Fix lm78 VID conversion

Fix the lm78 VID reading, which I accidentally broke while making
this driver use the common vid_from_reg function rather than
reimplementing its own in 2.6.14-rc1.

I'm not proud of it, trust me.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Jean Delvare and committed by Linus Torvalds d0d3cd69 2723ab91

+1 -1
+1 -1
drivers/hwmon/lm78.c
··· 451 static ssize_t show_vid(struct device *dev, struct device_attribute *attr, char *buf) 452 { 453 struct lm78_data *data = lm78_update_device(dev); 454 - return sprintf(buf, "%d\n", vid_from_reg(82, data->vid)); 455 } 456 static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid, NULL); 457
··· 451 static ssize_t show_vid(struct device *dev, struct device_attribute *attr, char *buf) 452 { 453 struct lm78_data *data = lm78_update_device(dev); 454 + return sprintf(buf, "%d\n", vid_from_reg(data->vid, 82)); 455 } 456 static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid, NULL); 457