aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-07-25 10:19:35 -0400
committerGuenter Roeck <linux@roeck-us.net>2014-08-04 10:01:40 -0400
commitdbd1db7d42c053f2f937dc52c5644e105043b082 (patch)
tree880bd7b892ca753d9ea9f1efae6d6ca557f2f0f3
parent4e8e75f6a4c977e2e9caffa3ceab0f7e559cb825 (diff)
hwmon: (pwm-fan) Make SENSORS_PWM_FAN depend on OF
This driver won't instantiate if OF is not configured, thus add OF dependency. Also add COMPILE_TEST to increase build testing coverage. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r--drivers/hwmon/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 6b904fbbf488..f00d048aa583 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -1130,7 +1130,7 @@ source drivers/hwmon/pmbus/Kconfig
1130 1130
1131config SENSORS_PWM_FAN 1131config SENSORS_PWM_FAN
1132 tristate "PWM fan" 1132 tristate "PWM fan"
1133 depends on PWM 1133 depends on (PWM && OF) || COMPILE_TEST
1134 help 1134 help
1135 If you say yes here you get support for fans connected to PWM lines. 1135 If you say yes here you get support for fans connected to PWM lines.
1136 The driver uses the generic PWM interface, thus it will work on a 1136 The driver uses the generic PWM interface, thus it will work on a