Skip to content

Commit

Permalink
hwmon: (pwm-fan) Make SENSORS_PWM_FAN depend on OF
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
AxelLin authored and groeck committed Aug 4, 2014
1 parent 4e8e75f commit dbd1db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbd1db7

Please sign in to comment.