diff mbox

[v2] pwm: add COMPILE_TEST and default y for brcm-iproc-pwm

Message ID 1475948189-6402-1-git-send-email-scott.branden@broadcom.com
State Superseded
Headers show

Commit Message

Scott Branden Oct. 8, 2016, 5:36 p.m. UTC
Enable COMPILE_TEST for broader compile coverage.
Default y for IPROC PWM driver for IPROC SoCs.
This allows you to turn it on simply by selecting CONFIG_PWM.

Signed-off-by: Scott Branden <scott.branden@broadcom.com>
---
 drivers/pwm/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Ray Jui Oct. 8, 2016, 8:20 p.m. UTC | #1
Hi Scott,

On 10/8/2016 10:36 AM, Scott Branden wrote:
> Enable COMPILE_TEST for broader compile coverage.
> Default y for IPROC PWM driver for IPROC SoCs.
> This allows you to turn it on simply by selecting CONFIG_PWM.
>
> Signed-off-by: Scott Branden <scott.branden@broadcom.com>
> ---
>   drivers/pwm/Kconfig | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
> index 80a566a..68cd13d 100644
> --- a/drivers/pwm/Kconfig
> +++ b/drivers/pwm/Kconfig
> @@ -76,7 +76,8 @@ config PWM_ATMEL_TCB
>   
>   config PWM_BCM_IPROC
>   	tristate "iProc PWM support"
> -	depends on ARCH_BCM_IPROC
> +	depends on ARCH_BCM_IPROC || COMPILE_TEST
Would be nice to also add a dependency on COMMON_CLK here.

> +	default ARCH_BCM_IPROC
>   	help
>   	  Generic PWM framework driver for Broadcom iProc PWM block. This
>   	  block is used in Broadcom iProc SoC's.

Thanks,

Ray
--
To unsubscribe from this list: send the line "unsubscribe linux-pwm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Scott Branden Oct. 8, 2016, 8:49 p.m. UTC | #2
Hi Ray,

On 16-10-08 01:20 PM, Ray Jui wrote:
> Hi Scott,
>
> On 10/8/2016 10:36 AM, Scott Branden wrote:
>> Enable COMPILE_TEST for broader compile coverage.
>> Default y for IPROC PWM driver for IPROC SoCs.
>> This allows you to turn it on simply by selecting CONFIG_PWM.
>>
>> Signed-off-by: Scott Branden <scott.branden@broadcom.com>
>> ---
>>   drivers/pwm/Kconfig | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
>> index 80a566a..68cd13d 100644
>> --- a/drivers/pwm/Kconfig
>> +++ b/drivers/pwm/Kconfig
>> @@ -76,7 +76,8 @@ config PWM_ATMEL_TCB
>>     config PWM_BCM_IPROC
>>       tristate "iProc PWM support"
>> -    depends on ARCH_BCM_IPROC
>> +    depends on ARCH_BCM_IPROC || COMPILE_TEST
> Would be nice to also add a dependency on COMMON_CLK here.
will add depends on COMMON_CLK
>
>> +    default ARCH_BCM_IPROC
>>       help
>>         Generic PWM framework driver for Broadcom iProc PWM block. This
>>         block is used in Broadcom iProc SoC's.
>
> Thanks,
>
> Ray

Regards,
  Scott
--
To unsubscribe from this list: send the line "unsubscribe linux-pwm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index 80a566a..68cd13d 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -76,7 +76,8 @@  config PWM_ATMEL_TCB
 
 config PWM_BCM_IPROC
 	tristate "iProc PWM support"
-	depends on ARCH_BCM_IPROC
+	depends on ARCH_BCM_IPROC || COMPILE_TEST
+	default ARCH_BCM_IPROC
 	help
 	  Generic PWM framework driver for Broadcom iProc PWM block. This
 	  block is used in Broadcom iProc SoC's.