summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-07-25 16:19:35 +0200
committerGuenter Roeck <linux@roeck-us.net>2014-08-04 16:01:40 +0200
commitdbd1db7d42c053f2f937dc52c5644e105043b082 (patch)
tree880bd7b892ca753d9ea9f1efae6d6ca557f2f0f3 /drivers/hwmon
parenthwmon: (pwm-fan) Remove duplicate dev_set_drvdata call (diff)
downloadlinux-dbd1db7d42c053f2f937dc52c5644e105043b082.tar.xz
linux-dbd1db7d42c053f2f937dc52c5644e105043b082.zip
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>
Diffstat (limited to 'drivers/hwmon')
-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