public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mfd: tps65910: remove unused data
@ 2012-11-29  8:48 Kim, Milo
  2012-11-29 19:19 ` Laxman Dewangan
  2012-11-30 11:22 ` Samuel Ortiz
  0 siblings, 2 replies; 3+ messages in thread
From: Kim, Milo @ 2012-11-29  8:48 UTC (permalink / raw)
  To: Samuel Ortiz
  Cc: Mark Brown, ldewangan@nvidia.com, linux-kernel@vger.kernel.org

 The 'io_mutex' is not used anywhere.
 The regmap API supports the mutex internally, so no additional mutex required.

 And 'domain' private data is unnecessary because the irq domain is
 already registered by using regmap_add_irq_chip().

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
---
 drivers/mfd/tps65910.c       |    1 -
 include/linux/mfd/tps65910.h |    2 --
 2 files changed, 3 deletions(-)

diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c
index fdb3027..d5ef3a5 100644
--- a/drivers/mfd/tps65910.c
+++ b/drivers/mfd/tps65910.c
@@ -486,7 +486,6 @@ static __devinit int tps65910_i2c_probe(struct i2c_client *i2c,
 	tps65910->dev = &i2c->dev;
 	tps65910->i2c_client = i2c;
 	tps65910->id = chip_id;
-	mutex_init(&tps65910->io_mutex);
 
 	tps65910->regmap = devm_regmap_init_i2c(i2c, &tps65910_regmap_config);
 	if (IS_ERR(tps65910->regmap)) {
diff --git a/include/linux/mfd/tps65910.h b/include/linux/mfd/tps65910.h
index 0b16903..20e433e 100644
--- a/include/linux/mfd/tps65910.h
+++ b/include/linux/mfd/tps65910.h
@@ -893,7 +893,6 @@ struct tps65910 {
 	struct device *dev;
 	struct i2c_client *i2c_client;
 	struct regmap *regmap;
-	struct mutex io_mutex;
 	unsigned int id;
 
 	/* Client devices */
@@ -907,7 +906,6 @@ struct tps65910 {
 	/* IRQ Handling */
 	int chip_irq;
 	struct regmap_irq_chip_data *irq_data;
-	struct irq_domain *domain;
 };
 
 struct tps65910_platform_data {
-- 
1.7.9.5


Best Regards,
Milo



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

* Re: [PATCH 1/2] mfd: tps65910: remove unused data
  2012-11-29  8:48 [PATCH 1/2] mfd: tps65910: remove unused data Kim, Milo
@ 2012-11-29 19:19 ` Laxman Dewangan
  2012-11-30 11:22 ` Samuel Ortiz
  1 sibling, 0 replies; 3+ messages in thread
From: Laxman Dewangan @ 2012-11-29 19:19 UTC (permalink / raw)
  To: Kim, Milo; +Cc: Samuel Ortiz, Mark Brown, linux-kernel@vger.kernel.org

On Thursday 29 November 2012 02:18 PM, Kim, Milo wrote:
>   The 'io_mutex' is not used anywhere.
>   The regmap API supports the mutex internally, so no additional mutex required.
>
>   And 'domain' private data is unnecessary because the irq domain is
>   already registered by using regmap_add_irq_chip().
>
> Signed-off-by: Milo(Woogyom) Kim<milo.kim@ti.com>
> ---

Thanks, I missed on my cleanups.

Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
>   drivers/mfd/tps65910.c       |    1 -
>   include/linux/mfd/tps65910.h |    2 --
>   2 files changed, 3 deletions(-)
>
> diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c
> index fdb3027..d5ef3a5 100644
> --- a/drivers/mfd/tps65910.c
> +++ b/drivers/mfd/tps65910.c
> @@ -486,7 +486,6 @@ static __devinit int tps65910_i2c_probe(struct i2c_client *i2c,
>   	tps65910->dev =&i2c->dev;
>   	tps65910->i2c_client = i2c;
>   	tps65910->id = chip_id;
> -	mutex_init(&tps65910->io_mutex);
>
>   	tps65910->regmap = devm_regmap_init_i2c(i2c,&tps65910_regmap_config);
>   	if (IS_ERR(tps65910->regmap)) {
> diff --git a/include/linux/mfd/tps65910.h b/include/linux/mfd/tps65910.h
> index 0b16903..20e433e 100644
> --- a/include/linux/mfd/tps65910.h
> +++ b/include/linux/mfd/tps65910.h
> @@ -893,7 +893,6 @@ struct tps65910 {
>   	struct device *dev;
>   	struct i2c_client *i2c_client;
>   	struct regmap *regmap;
> -	struct mutex io_mutex;
>   	unsigned int id;
>
>   	/* Client devices */
> @@ -907,7 +906,6 @@ struct tps65910 {
>   	/* IRQ Handling */
>   	int chip_irq;
>   	struct regmap_irq_chip_data *irq_data;
> -	struct irq_domain *domain;
>   };
>
>   struct tps65910_platform_data {


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

* Re: [PATCH 1/2] mfd: tps65910: remove unused data
  2012-11-29  8:48 [PATCH 1/2] mfd: tps65910: remove unused data Kim, Milo
  2012-11-29 19:19 ` Laxman Dewangan
@ 2012-11-30 11:22 ` Samuel Ortiz
  1 sibling, 0 replies; 3+ messages in thread
From: Samuel Ortiz @ 2012-11-30 11:22 UTC (permalink / raw)
  To: Kim, Milo; +Cc: Mark Brown, ldewangan@nvidia.com, linux-kernel@vger.kernel.org

Hi Milo,

On Thu, Nov 29, 2012 at 08:48:26AM +0000, Kim, Milo wrote:
>  The 'io_mutex' is not used anywhere.
>  The regmap API supports the mutex internally, so no additional mutex required.
> 
>  And 'domain' private data is unnecessary because the irq domain is
>  already registered by using regmap_add_irq_chip().
> 
> Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
> ---
>  drivers/mfd/tps65910.c       |    1 -
>  include/linux/mfd/tps65910.h |    2 --
>  2 files changed, 3 deletions(-)
Applied, thanks.

Cheers,
Samuel.

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

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

end of thread, other threads:[~2012-11-30 11:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-29  8:48 [PATCH 1/2] mfd: tps65910: remove unused data Kim, Milo
2012-11-29 19:19 ` Laxman Dewangan
2012-11-30 11:22 ` Samuel Ortiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox