All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eduardo Valentin <eduardo.valentin@nokia.com>
To: "Valentin Eduardo (Nokia-D/Helsinki)" <eduardo.valentin@nokia.com>
Cc: Core-Review <core-review@ok.research.nokia.com>,
	Amit Kucheria <amit.kucheria@verdurent.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	Samuel Ortiz <sameo@linux.intel.com>
Subject: Re: [PATCHv3 01/11] mfd: twl4030-power: Rename DEVGROUP to DEV_GRP
Date: Thu, 22 Apr 2010 11:19:32 +0300	[thread overview]
Message-ID: <20100422081932.GE16011@besouro.research.nokia.com> (raw)
In-Reply-To: <1271923663-23668-2-git-send-email-eduardo.valentin@nokia.com>

Hello guys,

sorry for this spamming, I've missed the suppress cc list while sending these patches.

On Thu, Apr 22, 2010 at 10:07:33AM +0200, Valentin Eduardo (Nokia-D/Helsinki) wrote:
> From: Amit Kucheria <amit.kucheria@verdurent.com>
> 
> Stick to the names used in the reference manual
> 
> Signed-off-by: Amit Kucheria <amit.kucheria@verdurent.com>
> Cc: linux-omap@vger.kernel.org
> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
> ---
>  drivers/mfd/twl4030-power.c |   16 ++++++++--------
>  1 files changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c
> index 6b716ef..8f82e22 100644
> --- a/drivers/mfd/twl4030-power.c
> +++ b/drivers/mfd/twl4030-power.c
> @@ -74,12 +74,12 @@ static u8 twl4030_start_script_address = 0x2b;
>  
>  /* resource configuration registers */
>  
> -#define DEVGROUP_OFFSET		0
> +#define DEV_GRP_OFFSET		0
>  #define TYPE_OFFSET		1
>  
> -/* Bit positions */
> -#define DEVGROUP_SHIFT		5
> -#define DEVGROUP_MASK		(7 << DEVGROUP_SHIFT)
> +/* Bit positions in the registers */
> +#define DEV_GRP_SHIFT		5
> +#define DEV_GRP_MASK		(7 << DEV_GRP_SHIFT)
>  #define TYPE_SHIFT		0
>  #define TYPE_MASK		(7 << TYPE_SHIFT)
>  #define TYPE2_SHIFT		3
> @@ -333,7 +333,7 @@ static int __init twl4030_configure_resource(struct twl4030_resconfig *rconfig)
>  
>  	/* Set resource group */
>  	err = twl4030_i2c_read_u8(TWL4030_MODULE_PM_RECEIVER, &grp,
> -				rconfig_addr + DEVGROUP_OFFSET);
> +				rconfig_addr + DEV_GRP_OFFSET);
>  	if (err) {
>  		pr_err("TWL4030 Resource %d group could not be read\n",
>  			rconfig->resource);
> @@ -341,10 +341,10 @@ static int __init twl4030_configure_resource(struct twl4030_resconfig *rconfig)
>  	}
>  
>  	if (rconfig->devgroup >= 0) {
> -		grp &= ~DEVGROUP_MASK;
> -		grp |= rconfig->devgroup << DEVGROUP_SHIFT;
> +		grp &= ~DEV_GRP_MASK;
> +		grp |= rconfig->devgroup << DEV_GRP_SHIFT;
>  		err = twl4030_i2c_write_u8(TWL4030_MODULE_PM_RECEIVER,
> -					grp, rconfig_addr + DEVGROUP_OFFSET);
> +					grp, rconfig_addr + DEV_GRP_OFFSET);
>  		if (err < 0) {
>  			pr_err("TWL4030 failed to program devgroup\n");
>  			return err;
> -- 
> 1.7.0.4.361.g8b5fe.dirty
> 
> _______________________________________________
> Core-review mailing list
> Core-review@ok.research.nokia.com
> http://ok.research.nokia.com/cgi-bin/mailman/listinfo/core-review

  reply	other threads:[~2010-04-22  8:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1271923663-23668-1-git-send-email-eduardo.valentin@nokia.com>
2010-04-22  8:07 ` [PATCHv3 01/11] mfd: twl4030-power: Rename DEVGROUP to DEV_GRP Eduardo Valentin
2010-04-22  8:19   ` Eduardo Valentin [this message]
2010-04-22  8:07 ` [PATCHv3 02/11] mfd: Add comments for the twl4030-power register and bit layout Eduardo Valentin
2010-04-22  8:07 ` [PATCHv3 03/11] mfd: Add support for remapping twl4030-power power states Eduardo Valentin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100422081932.GE16011@besouro.research.nokia.com \
    --to=eduardo.valentin@nokia.com \
    --cc=amit.kucheria@verdurent.com \
    --cc=core-review@ok.research.nokia.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=sameo@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.