diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-07-25 22:19:35 +0800 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-08-04 07:01:40 -0700 |
commit | dbd1db7d42c053f2f937dc52c5644e105043b082 (patch) | |
tree | 880bd7b892ca753d9ea9f1efae6d6ca557f2f0f3 /drivers/hwmon | |
parent | 4e8e75f6a4c977e2e9caffa3ceab0f7e559cb825 (diff) | |
download | linux-dbd1db7d42c053f2f937dc52c5644e105043b082.tar.gz linux-dbd1db7d42c053f2f937dc52c5644e105043b082.tar.bz2 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/Kconfig | 2 |
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 |