linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mfd: mc13xxx: Core should not be user visible
@ 2012-05-16 17:51 Mark Brown
  2012-05-16 18:01 ` Uwe Kleine-König
  2012-05-18 11:03 ` Samuel Ortiz
  0 siblings, 2 replies; 4+ messages in thread
From: Mark Brown @ 2012-05-16 17:51 UTC (permalink / raw)
  To: Uwe Kleine-Koenig, Samuel Ortiz; +Cc: linux-kernel, Mark Brown

Since the core is not usable without one of the bus modules it should not
be presented in the UI but should instead be selected by the bus modules.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 drivers/mfd/Kconfig |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index ffb7c05..8bc76aa 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -614,7 +614,7 @@ config MFD_MC13783
 	tristate
 
 config MFD_MC13XXX
-	tristate "Support Freescale MC13783 and MC13892"
+	tristate
 	depends on SPI_MASTER || I2C
 	select MFD_CORE
 	select MFD_MC13783
@@ -624,12 +624,11 @@ config MFD_MC13XXX
 	  additional drivers must be enabled in order to use the
 	  functionality of the device.
 
-if MFD_MC13XXX
-
 config MFD_MC13XXX_SPI
 	tristate "MC13xxx SPI interface" if SPI_MASTER
 	default SPI_MASTER
 	select REGMAP_SPI
+	select MFD_MC13XXX
 	help
 	  Select this if your MC13xxx is connected via an SPI bus.
 
@@ -637,11 +636,10 @@ config MFD_MC13XXX_I2C
 	tristate "MC13xxx I2C interface" if I2C
 	default I2C
 	select REGMAP_I2C
+	select MFD_MC13XXX
 	help
 	  Select this if your MC13xxx is connected via an I2C bus.
 
-endif
-
 config ABX500_CORE
 	bool "ST-Ericsson ABX500 Mixed Signal Circuit register functions"
 	default y if ARCH_U300 || ARCH_U8500
-- 
1.7.10


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] mfd: mc13xxx: Core should not be user visible
  2012-05-16 17:51 [PATCH] mfd: mc13xxx: Core should not be user visible Mark Brown
@ 2012-05-16 18:01 ` Uwe Kleine-König
  2012-05-16 18:03   ` Mark Brown
  2012-05-18 11:03 ` Samuel Ortiz
  1 sibling, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2012-05-16 18:01 UTC (permalink / raw)
  To: Mark Brown; +Cc: Samuel Ortiz, linux-kernel

Hello,

On Wed, May 16, 2012 at 06:51:08PM +0100, Mark Brown wrote:
> Since the core is not usable without one of the bus modules it should not
> be presented in the UI but should instead be selected by the bus modules.
> 
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
>  drivers/mfd/Kconfig |    8 +++-----
>  1 file changed, 3 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> index ffb7c05..8bc76aa 100644
> --- a/drivers/mfd/Kconfig
> +++ b/drivers/mfd/Kconfig
> @@ -614,7 +614,7 @@ config MFD_MC13783
>  	tristate
>  
>  config MFD_MC13XXX
> -	tristate "Support Freescale MC13783 and MC13892"
> +	tristate
>  	depends on SPI_MASTER || I2C
>  	select MFD_CORE
>  	select MFD_MC13783
> @@ -624,12 +624,11 @@ config MFD_MC13XXX
>  	  additional drivers must be enabled in order to use the
>  	  functionality of the device.
>  
> -if MFD_MC13XXX
> -
>  config MFD_MC13XXX_SPI
>  	tristate "MC13xxx SPI interface" if SPI_MASTER
>  	default SPI_MASTER
>  	select REGMAP_SPI
> +	select MFD_MC13XXX
>  	help
>  	  Select this if your MC13xxx is connected via an SPI bus.
>  
> @@ -637,11 +636,10 @@ config MFD_MC13XXX_I2C
>  	tristate "MC13xxx I2C interface" if I2C
>  	default I2C
>  	select REGMAP_I2C
> +	select MFD_MC13XXX
>  	help
>  	  Select this if your MC13xxx is connected via an I2C bus.
>  
> -endif
> -
If you change the logic in this way please change

	tristate "MC13xxx SPI interface" if SPI_MASTER
	default SPI_MASTER

to

	tristate "Freescale MC13783 and MC13892 SPI interface"
	depends on SPI_MASTER

and similar to the i2c part. IIRC only MC13892 supports i2c.

Best regards
Uwe

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mfd: mc13xxx: Core should not be user visible
  2012-05-16 18:01 ` Uwe Kleine-König
@ 2012-05-16 18:03   ` Mark Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2012-05-16 18:03 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: Samuel Ortiz, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

On Wed, May 16, 2012 at 08:01:54PM +0200, Uwe Kleine-König wrote:

> If you change the logic in this way please change

> 	tristate "MC13xxx SPI interface" if SPI_MASTER
> 	default SPI_MASTER

> to

> 	tristate "Freescale MC13783 and MC13892 SPI interface"
> 	depends on SPI_MASTER

> and similar to the i2c part. IIRC only MC13892 supports i2c.

I don't care that much about randconfigs; I just thought it was quicker
to post a patch than describe the fix.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mfd: mc13xxx: Core should not be user visible
  2012-05-16 17:51 [PATCH] mfd: mc13xxx: Core should not be user visible Mark Brown
  2012-05-16 18:01 ` Uwe Kleine-König
@ 2012-05-18 11:03 ` Samuel Ortiz
  1 sibling, 0 replies; 4+ messages in thread
From: Samuel Ortiz @ 2012-05-18 11:03 UTC (permalink / raw)
  To: Mark Brown; +Cc: Uwe Kleine-Koenig, linux-kernel

Hi Mark,

On Wed, May 16, 2012 at 06:51:08PM +0100, Mark Brown wrote:
> Since the core is not usable without one of the bus modules it should not
> be presented in the UI but should instead be selected by the bus modules.
Patch applied, with Uwe suggestions added.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-18 10:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-16 17:51 [PATCH] mfd: mc13xxx: Core should not be user visible Mark Brown
2012-05-16 18:01 ` Uwe Kleine-König
2012-05-16 18:03   ` Mark Brown
2012-05-18 11:03 ` Samuel Ortiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).