From: sameo@linux.intel.com (Samuel Ortiz)
To: linux-arm-kernel@lists.infradead.org
Subject: [V3 1/3] mfd: add power control interface for pm8606 chip
Date: Mon, 27 Feb 2012 15:58:11 +0100 [thread overview]
Message-ID: <20120227145811.GS27687@sortiz-mobl> (raw)
In-Reply-To: <1330052089-12215-1-git-send-email-jtzhou@marvell.com>
Hi Jett,
I have one more comment, sorry for not including it in my first review:
On Fri, Feb 24, 2012 at 10:54:49AM +0800, Jett.Zhou wrote:
> +static void __devinit device_osc_init(struct i2c_client *i2c)
> +{
> + struct pm860x_chip *chip = i2c_get_clientdata(i2c);
> +
> + mutex_init(&chip->osc_lock);
> + /* init portofino reference group voting and status */
> + /* Disable Reference group Vsys */
> + pm860x_set_bits(i2c, PM8606_VSYS, PM8606_VSYS_EN, 0);
> + /* Disable Internal Oscillator */
> + pm860x_set_bits(i2c, PM8606_MISC, PM8606_MISC_OSC_EN, 0);
> +
> + chip->osc_vote = REF_GP_NO_CLIENTS;
> + chip->osc_status = PM8606_REF_GP_OSC_OFF;
> +}
> +
> static void __devinit device_bk_init(struct pm860x_chip *chip,
> struct pm860x_platform_data *pdata)
> {
> @@ -767,6 +860,15 @@ out:
> return;
> }
>
> +static void __devinit device_8606_init(struct pm860x_chip *chip,
> + struct i2c_client *i2c,
> + struct pm860x_platform_data *pdata)
> +{
> + device_osc_init(i2c);
> + device_bk_init(chip, pdata);
> + device_led_init(chip, pdata);
> +}
> +
Could you please put the device_8606_init() factorization into a separate
patch ?
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
prev parent reply other threads:[~2012-02-27 14:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-24 2:54 [V3 1/3] mfd: add power control interface for pm8606 chip Jett.Zhou
2012-02-27 14:58 ` Samuel Ortiz [this message]
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=20120227145811.GS27687@sortiz-mobl \
--to=sameo@linux.intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).