[PATCH v6 02/10] pwm: dwc: allow driver to be built with COMPILE_TEST

Ben Dooks posted 10 patches 3 years, 5 months ago
There is a newer version of this series
[PATCH v6 02/10] pwm: dwc: allow driver to be built with COMPILE_TEST
Posted by Ben Dooks 3 years, 5 months ago
Allow dwc driver to be built with COMPILE_TEST should allow
better coverage when build testing.

Signed-off-by: Ben Dooks <ben.dooks@sifive.com>
---
v4:
 - moved to earlier in the series
v3:
 - add HAS_IOMEM depdency for compile testing
---
 drivers/pwm/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index 60d13a949bc5..3f3c53af4a56 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -176,7 +176,8 @@ config PWM_CROS_EC
 
 config PWM_DWC
 	tristate "DesignWare PWM Controller"
-	depends on PCI
+	depends on PCI || COMPILE_TEST
+	depends on HAS_IOMEM
 	help
 	  PWM driver for Synopsys DWC PWM Controller attached to a PCI bus.
 
-- 
2.35.1
Re: [PATCH v6 02/10] pwm: dwc: allow driver to be built with COMPILE_TEST
Posted by Uwe Kleine-König 3 years, 5 months ago
On Thu, Oct 20, 2022 at 04:16:02PM +0100, Ben Dooks wrote:
> Allow dwc driver to be built with COMPILE_TEST should allow
> better coverage when build testing.
> 
> Signed-off-by: Ben Dooks <ben.dooks@sifive.com>

Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

(forwarded from v4)

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |