/[linux-patches]/genpatches-2.6/trunk/2.6.14/1124_3_hwmon-lm78-vid.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1124_3_hwmon-lm78-vid.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 292 - (show annotations) (download) (as text)
Tue Jan 31 21:50:53 2006 UTC (14 years, 8 months ago) by johnm
File MIME type: text/x-diff
File size: 1214 byte(s)
Large update - thanks goes to Kerin Millar for the legwork.
1 From khali@linux-fr.org Mon Nov 14 14:00:46 2005
2 Date: Mon, 14 Nov 2005 23:11:45 +0100
3 From: Jean Delvare <khali@linux-fr.org>
4 To: Greg KH <greg@kroah.com>
5 Subject: hwmon: Fix lm78 VID conversion
6 Message-Id: <20051114231145.670478d0.khali@linux-fr.org>
7 Content-Disposition: inline; filename=hwmon-lm78-fix-vid.patch
8
9 Fix the lm78 VID reading, which I accidentally broke while making
10 this driver use the common vid_from_reg function rather than
11 reimplementing its own in 2.6.14-rc1.
12
13 I'm not proud of it, trust me.
14
15 Signed-off-by: Jean Delvare <khali@linux-fr.org>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 Signed-off-by: Chris Wright <chrisw@osdl.org>
18 ---
19 drivers/hwmon/lm78.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22 --- linux-2.6.14.2.orig/drivers/hwmon/lm78.c
23 +++ linux-2.6.14.2/drivers/hwmon/lm78.c
24 @@ -451,7 +451,7 @@ static DEVICE_ATTR(fan3_div, S_IRUGO, sh
25 static ssize_t show_vid(struct device *dev, struct device_attribute *attr, char *buf)
26 {
27 struct lm78_data *data = lm78_update_device(dev);
28 - return sprintf(buf, "%d\n", vid_from_reg(82, data->vid));
29 + return sprintf(buf, "%d\n", vid_from_reg(data->vid, 82));
30 }
31 static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid, NULL);
32

  ViewVC Help
Powered by ViewVC 1.1.20