pwm: pca9685: depends on I2C rather than REGMAP_I2C
diff mbox

Message ID 1387252289.4816.1.camel@phoenix
State Accepted
Headers show

Commit Message

Axel Lin Dec. 17, 2013, 3:51 a.m. UTC
REGMAP_I2C is not a visible config option.
Thus make PWM_PCA9685 depend on I2c and then select REGMAP_I2C.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/pwm/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Steffen Trumtrar Dec. 17, 2013, 9:15 a.m. UTC | #1
On Tue, Dec 17, 2013 at 11:51:29AM +0800, Axel Lin wrote:
> REGMAP_I2C is not a visible config option.
> Thus make PWM_PCA9685 depend on I2c and then select REGMAP_I2C.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  drivers/pwm/Kconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
> index 77aef3b..7139e1d 100644
> --- a/drivers/pwm/Kconfig
> +++ b/drivers/pwm/Kconfig
> @@ -122,7 +122,8 @@ config PWM_MXS
>  
>  config PWM_PCA9685
>  	tristate "NXP PCA9685 PWM driver"
> -	depends on OF && REGMAP_I2C
> +	depends on OF && I2C
> +	select REGMAP_I2C
>  	help
>  	  Generic PWM framework driver for NXP PCA9685 LED controller.
>  

Acked-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>

Thanks,
Steffen
Thierry Reding Dec. 17, 2013, 9:33 a.m. UTC | #2
On Tue, Dec 17, 2013 at 11:51:29AM +0800, Axel Lin wrote:
> REGMAP_I2C is not a visible config option.
> Thus make PWM_PCA9685 depend on I2c and then select REGMAP_I2C.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  drivers/pwm/Kconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Applied, thanks.

Thierry

Patch
diff mbox

diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index 77aef3b..7139e1d 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -122,7 +122,8 @@  config PWM_MXS
 
 config PWM_PCA9685
 	tristate "NXP PCA9685 PWM driver"
-	depends on OF && REGMAP_I2C
+	depends on OF && I2C
+	select REGMAP_I2C
 	help
 	  Generic PWM framework driver for NXP PCA9685 LED controller.