hwmon/lm93: Use standard names for vid files
PATCH 1/1 hwmon/lm93: Use standard names for vid files
The lm93 driver doesn't follow the standard naming convention for its vid files. Fix this so that libsensors will pick them.
--- drivers/hwmon/lm93.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/hwmon/lm93.c +4 -4
@@ -2078,8 +2078,8 @@ static ssize_t show_vid(struct device *dreturn sprintf (buf,"%d\n" ,LM93_VID_FROM_REG (data->vid[nr])); } -static SENSOR_DEVICE_ATTR(vid1, S_IRUGO, show_vid, NULL, 0); -static SENSOR_DEVICE_ATTR(vid2, S_IRUGO, show_vid, NULL, 1); +static SENSOR_DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid, NULL, 0); +static SENSOR_DEVICE_ATTR(cpu1_vid, S_IRUGO, show_vid, NULL, 1);static ssize_t show_prochot (struct device *dev,struct device_attribute *attr,char *buf)
@@ -2431,8 +2431,8 @@ static struct attribute *lm93_attrs[] = &sensor_dev_attr_pwm2_auto_spinup_time.dev_attr.attr, &dev_attr_pwm_auto_prochot_ramp.attr, &dev_attr_pwm_auto_vrdhot_ramp.attr, - &sensor_dev_attr_vid1.dev_attr.attr, - &sensor_dev_attr_vid2.dev_attr.attr, + &sensor_dev_attr_cpu0_vid.dev_attr.attr, + &sensor_dev_attr_cpu1_vid.dev_attr.attr, &sensor_dev_attr_prochot1.dev_attr.attr, &sensor_dev_attr_prochot2.dev_attr.attr, &sensor_dev_attr_prochot1_avg.dev_attr.attr,
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] [PATCH] hwmon/lm93: Use standard names for vid
Am Dienstag 04 September 2007 schrieb Jean Delvare:
Quoted 2 lines
The lm93 driver doesn't follow the standard naming convention for its vid files. Fix this so that libsensors will pick them.
Looks alright to me.
Quoted 2 lines
Signed-off-by Jean Delvare <[email protected]>
Quoted 19 lines
--- drivers/hwmon/lm93.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)---
linux-2.6.23-rc5.orig/drivers/hwmon/lm93.c2007-09-04
11:40:50.000000000 +0200 +++linux-2.6.23-rc5/drivers/hwmon/lm93.c2007-09-04 13:56:17.000000000 +0200drivers/hwmon/lm93.c +2
-2@@ -2078,8 +2078,8 @@ static ssize_t show_vid(struct device *dreturn sprintf (buf,"%d\n" ,LM93_VID_FROM_REG (data->vid[nr])); } -static SENSOR_DEVICE_ATTR(vid1, S_IRUGO, show_vid, NULL, 0); -static SENSOR_DEVICE_ATTR(vid2, S_IRUGO, show_vid, NULL, 1); +static SENSOR_DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid, NULL, 0); +static SENSOR_DEVICE_ATTR(cpu1_vid, S_IRUGO, show_vid, NULL, 1);static ssize_t show_prochot (struct device *dev,struct device_attribute *attr,char *buf)
drivers/hwmon/lm93.c static struct attribute *lm93_attrs[] > &sensor_dev_attr_pwm2_auto_spinup_time.dev_attr.attr, · line 2437
Quoted 9 lines
drivers/hwmon/lm93.c +2
-2@@ -2431,8 +2431,8 @@ static struct attribute *lm93_attrs[] > &sensor_dev_attr_pwm2_auto_spinup_time.dev_attr.attr, &dev_attr_pwm_auto_prochot_ramp.attr, &dev_attr_pwm_auto_vrdhot_ramp.attr, - &sensor_dev_attr_vid1.dev_attr.attr, - &sensor_dev_attr_vid2.dev_attr.attr, + &sensor_dev_attr_cpu0_vid.dev_attr.attr, + &sensor_dev_attr_cpu1_vid.dev_attr.attr, &sensor_dev_attr_prochot1.dev_attr.attr, &sensor_dev_attr_prochot2.dev_attr.attr, &sensor_dev_attr_prochot1_avg.dev_attr.attr,
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] [PATCH] hwmon/lm93: Use standard names for vid
In reply to Jean DelvareHi:
Quoted 10 lines · Hans-Jürgen Koch
Am Dienstag 04 September 2007 schrieb Jean Delvare:
Quoted 2 lines
The lm93 driver doesn't follow the standard naming convention for its vid files. Fix this so that libsensors will pick them.
Looks alright to me.
Quoted 2 lines
Signed-off-by Jean Delvare <[email protected]>Acked-by Hans J. Koch <[email protected]>
Applied to hwmon-2.6.git/testing, thanks.
Signature · 8 lines
Mark M. Hoffman [email protected] _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors