Skip to contentSkip to conversation

hwmon/smsc47m1: No confusing debugging messages

PATCH In review Jean Delvare 2 participants 2 messages Aug 16, 2007 – Aug 26, 2007 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon/smsc47m1: No confusing debugging messages

It's confusing to display debugging messages for fan3 and pwm3 for chips which don't have them.

---
 drivers/hwmon/smsc47m1.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/hwmon/smsc47m1.c +2 -2
@@ -553,7 +553,7 @@ static int __devinit smsc47m1_probe(stru
 		 || (err = device_create_file(dev,
 				&sensor_dev_attr_fan3_div.dev_attr)))
 			goto error_remove_files;
-	} else
+	} else if (data->type = smsc47m2)
 		dev_dbg(dev, "Fan 3 not enabled by hardware, skipping\n");
 
 	if (pwm1) {
@@ -580,7 +580,7 @@ static int __devinit smsc47m1_probe(stru
 		 || (err = device_create_file(dev,
 				&sensor_dev_attr_pwm3_enable.dev_attr)))
 			goto error_remove_files;
-	} else
+	} else if (data->type = smsc47m2)
 		dev_dbg(dev, "PWM 3 not enabled by hardware, skipping\n");
 
 	if ((err = device_create_file(dev, &dev_attr_alarms)))
Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw

Re: [lm-sensors] [PATCH] hwmon/smsc47m1: No confusing debugging

Quoted 4 lines · Jean Delvare

It's confusing to display debugging messages for fan3 and pwm3 for chips which don't have them.

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