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>
This commit is contained in:
Axel Lin 2014-07-25 22:19:35 +08:00 committed by Guenter Roeck
parent 4e8e75f6a4
commit dbd1db7d42
1 changed files with 1 additions and 1 deletions

View File

@ -1130,7 +1130,7 @@ source drivers/hwmon/pmbus/Kconfig
config SENSORS_PWM_FAN config SENSORS_PWM_FAN
tristate "PWM fan" tristate "PWM fan"
depends on PWM depends on (PWM && OF) || COMPILE_TEST
help help
If you say yes here you get support for fans connected to PWM lines. 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 The driver uses the generic PWM interface, thus it will work on a