From: Amit Kucheria <amit.kucheria@verdurent.com>
To: Samuel Ortiz <sameo@linux.intel.com>
Cc: List Linux Kernel <linux-kernel@vger.kernel.org>,
linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/5] mfd: twl4030-power: Rename DEVGROUP to DEV_GRP
Date: Tue, 20 Oct 2009 09:07:13 +0300 [thread overview]
Message-ID: <20091020060713.GV32041@smtp.gmail.com> (raw)
In-Reply-To: <20091019192646.GC30203@sortiz.org>
On 09 Oct 19, Samuel Ortiz wrote:
> Hi Amit,
>
> I've applied patches 1,2 and 3 to my for-next branch.
> I dont think patch 4 is really useful, and I'll wait for an ACK from Tony or
> Nokia before pushing patch 5.
>
> Thanks for your work.
>
> Cheers,
> Samuel.
Samuel,
I hope you meant you're taking patches 1, 2, 4 and 5.
3 is the one just moving stuff around and may be discarded.
Thanks.
Regards,
Amit
> On Mon, Oct 19, 2009 at 03:10:44PM +0300, Amit Kucheria wrote:
> > Stick to the names used in the reference manual
> >
> > Signed-off-by: Amit Kucheria <amit.kucheria@verdurent.com>
> > Cc: sameo@linux.intel.com
> > Cc: linux-omap@vger.kernel.org
> > ---
> > 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 d423e0c..82e3bcb 100644
> > --- a/drivers/mfd/twl4030-power.c
> > +++ b/drivers/mfd/twl4030-power.c
> > @@ -69,12 +69,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
> > @@ -328,7 +328,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);
> > @@ -336,10 +336,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.6.3.3
> >
>
> --
> Intel Open Source Technology Centre
> http://oss.intel.com/
--
------------------------------------------------------------
Amit Kucheria, Finland
------------------------------------------------------------
next prev parent reply other threads:[~2009-10-20 6:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1255954211-28496-1-git-send-email-amit.kucheria@verdurent.com>
2009-10-19 12:10 ` [PATCH 1/5] mfd: twl4030-power: Rename DEVGROUP to DEV_GRP Amit Kucheria
2009-10-19 19:26 ` Samuel Ortiz
2009-10-20 6:07 ` Amit Kucheria [this message]
2009-10-20 9:22 ` Samuel Ortiz
2009-10-19 12:10 ` [PATCH 2/5] mfd: twl4030-power: Add comments for the register and bit layout Amit Kucheria
2009-10-19 12:10 ` [PATCH 3/5] mfd: twl4030-power: Move power-related data closer together in the header file Amit Kucheria
2009-10-19 19:12 ` Samuel Ortiz
2009-10-19 19:33 ` Jean Delvare
2009-10-19 12:11 ` [PATCH 4/5] mfd: twl4030-power: Add support for remapping power states Amit Kucheria
2009-10-19 12:11 ` [PATCH 5/5] mfd: twl4030-power: Optimised power scripts for the rx51 Amit Kucheria
2009-10-19 19:15 ` Samuel Ortiz
2009-10-19 23:22 ` Tony Lindgren
2009-10-20 9:21 ` Samuel Ortiz
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=20091020060713.GV32041@smtp.gmail.com \
--to=amit.kucheria@verdurent.com \
--cc=linux-kernel@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox