projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67f921d
)
hwmon: (smsc47m1) No confusing debugging messages
author
Jean Delvare
<khali@linux-fr.org>
Thu, 16 Aug 2007 12:33:37 +0000
(14:33 +0200)
committer
Mark M. Hoffman
<mhoffman@lightlink.com>
Wed, 10 Oct 2007 02:56:29 +0000
(22:56 -0400)
It's confusing to display debugging messages for fan3 and pwm3 for
chips which don't have them.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
drivers/hwmon/smsc47m1.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/smsc47m1.c
b/drivers/hwmon/smsc47m1.c
index d3181967f1671a9359fc474dd1a009634c511991..71792778d6f29452c5af56c0eff76dd97a5514ad 100644
(file)
--- a/
drivers/hwmon/smsc47m1.c
+++ b/
drivers/hwmon/smsc47m1.c
@@
-553,7
+553,7
@@
static int __devinit smsc47m1_probe(struct platform_device *pdev)
|| (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(struct platform_device *pdev)
|| (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)))