summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-07-25 22:19:35 +0800
committerGuenter Roeck <linux@roeck-us.net>2014-08-04 07:01:40 -0700
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
config SENSORS_PWM_FAN
tristate "PWM fan"
- depends on PWM
+ depends on (PWM && OF) || COMPILE_TEST
help
If you say yes here you get support for fans connected to PWM lines.
The driver uses the generic PWM interface, thus it will work on a