* [lm-sensors] [PATCH] hwmon: (pwm-fan) Make SENSORS_PWM_FAN depend on OF
@ 2014-07-25 14:19 Axel Lin
2014-07-25 15:55 ` Jean Delvare
2014-07-25 16:33 ` Guenter Roeck
0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2014-07-25 14:19 UTC (permalink / raw)
To: lm-sensors
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>
---
drivers/hwmon/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index b93ab97..b9a2764 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
--
1.9.1
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [lm-sensors] [PATCH] hwmon: (pwm-fan) Make SENSORS_PWM_FAN depend on OF
2014-07-25 14:19 [lm-sensors] [PATCH] hwmon: (pwm-fan) Make SENSORS_PWM_FAN depend on OF Axel Lin
@ 2014-07-25 15:55 ` Jean Delvare
2014-07-25 16:33 ` Guenter Roeck
1 sibling, 0 replies; 3+ messages in thread
From: Jean Delvare @ 2014-07-25 15:55 UTC (permalink / raw)
To: lm-sensors
Hi Axel,
On Fri, 25 Jul 2014 22:19:35 +0800, Axel Lin wrote:
> 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>
> ---
> drivers/hwmon/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
> index b93ab97..b9a2764 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
Does the driver build without PWM? If it does then the patch is correct
and you can add:
Reviewed-by: Jean Delvare <jdelvare@suse.de>
If it does not then you have to leave PWM as a functional dependency,
which would lead to:
depends on PWM
depends on OF || COMPILE_TEST
It is allowed to have multiple depends statements, and even encouraged
when you have both functional dependencies and run-time dependencies. I
can't test, so please do.
Thanks,
--
Jean Delvare
SUSE L3 Support
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [lm-sensors] [PATCH] hwmon: (pwm-fan) Make SENSORS_PWM_FAN depend on OF
2014-07-25 14:19 [lm-sensors] [PATCH] hwmon: (pwm-fan) Make SENSORS_PWM_FAN depend on OF Axel Lin
2014-07-25 15:55 ` Jean Delvare
@ 2014-07-25 16:33 ` Guenter Roeck
1 sibling, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2014-07-25 16:33 UTC (permalink / raw)
To: lm-sensors
On Fri, Jul 25, 2014 at 05:55:20PM +0200, Jean Delvare wrote:
> Hi Axel,
>
> On Fri, 25 Jul 2014 22:19:35 +0800, Axel Lin wrote:
> > 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>
> > ---
> > drivers/hwmon/Kconfig | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
> > index b93ab97..b9a2764 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
>
> Does the driver build without PWM? If it does then the patch is correct
> and you can add:
>
Yes, it does build. To test it, I removed the PWM dependency, disabled
PWM, and tried to build it. I did this with CONFIG_OF enabled and disabled
(with arm as target). All variants passed, so I think we should be ok.
I'll apply the patch and run it through my full suite of builds. That should
hopefully tell us if there are any problems.
> Reviewed-by: Jean Delvare <jdelvare@suse.de>
>
Thanks!
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-25 16:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-25 14:19 [lm-sensors] [PATCH] hwmon: (pwm-fan) Make SENSORS_PWM_FAN depend on OF Axel Lin
2014-07-25 15:55 ` Jean Delvare
2014-07-25 16:33 ` Guenter Roeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.