diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-11-23 15:44:26 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-23 23:04:26 -0800 |
commit | d0d3cd6965d8e957764663cbb5aaa5ff486a2616 (patch) | |
tree | 04faf7ab4ea75656af0621e779e2bc00659a02bc /drivers/hwmon | |
parent | 2723ab91cb4019def10bdb01b0fecb85e6ac7884 (diff) | |
download | linux-d0d3cd6965d8e957764663cbb5aaa5ff486a2616.tar.gz linux-d0d3cd6965d8e957764663cbb5aaa5ff486a2616.tar.bz2 linux-d0d3cd6965d8e957764663cbb5aaa5ff486a2616.zip |
[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>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/lm78.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c index bde0cda9477e..78cdd506439f 100644 --- a/drivers/hwmon/lm78.c +++ b/drivers/hwmon/lm78.c @@ -451,7 +451,7 @@ static DEVICE_ATTR(fan3_div, S_IRUGO, show_fan_3_div, NULL); static ssize_t show_vid(struct device *dev, struct device_attribute *attr, char *buf) { struct lm78_data *data = lm78_update_device(dev); - return sprintf(buf, "%d\n", vid_from_reg(82, data->vid)); + return sprintf(buf, "%d\n", vid_from_reg(data->vid, 82)); } static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid, NULL); |