From: "Pandita, Vikram" <vikram.pandita@ti.com>
To: Girish S G <girishsg@ti.com>
Cc: linux-omap <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 2/2] OMAP4: Regulator: Specify system has fully specified constraints
Date: Wed, 22 Jun 2011 15:12:06 -0700 [thread overview]
Message-ID: <BANLkTim6sY=2qQ7isxhKSWgjCWCrc5UX4g@mail.gmail.com> (raw)
In-Reply-To: <1308702288-12787-1-git-send-email-girishsg@ti.com>
On Tue, Jun 21, 2011 at 5:24 PM, Girish S G <girishsg@ti.com> wrote:
<snip>
> diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
> index 04b7770..46f6800 100644
> --- a/arch/arm/mach-omap2/board-4430sdp.c
> +++ b/arch/arm/mach-omap2/board-4430sdp.c
> @@ -560,6 +560,9 @@ static struct i2c_board_info __initdata sdp4430_i2c_4_boardinfo[] = {
> };
> static int __init omap4_i2c_init(void)
> {
> + /* This will allow unused regulator to be shutdown */
> + regulator_has_full_constraints();
> +
Any particular reason to keep this call in i2c_init() function?
Does not look very intuitive to have generic regulator disable call in
an i2c init function !
> omap4_pmic_init("twl6030", &sdp4430_twldata);
> omap_register_i2c_bus(2, 400, NULL, 0);
> omap_register_i2c_bus(3, 400, sdp4430_i2c_3_boardinfo,
> diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
> index 3415a5e..c425f9f 100644
> --- a/arch/arm/mach-omap2/board-omap4panda.c
> +++ b/arch/arm/mach-omap2/board-omap4panda.c
> @@ -412,6 +412,9 @@ static struct i2c_board_info __initdata panda_i2c_eeprom[] = {
>
> static int __init omap4_panda_i2c_init(void)
> {
> + /* This will allow unused regulator to be shutdown */
> + regulator_has_full_constraints();
> +
ditto
> omap4_pmic_init("twl6030", &omap4_panda_twldata);
> omap_register_i2c_bus(2, 400, NULL, 0);
> /*
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-06-22 22:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-22 0:24 [PATCH 2/2] OMAP4: Regulator: Specify system has fully specified constraints Girish S G
2011-06-22 22:12 ` Pandita, Vikram [this message]
2011-06-22 22:32 ` Ghongdemath, Girish
2011-06-27 23:11 ` Kevin Hilman
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='BANLkTim6sY=2qQ7isxhKSWgjCWCrc5UX4g@mail.gmail.com' \
--to=vikram.pandita@ti.com \
--cc=girishsg@ti.com \
--cc=linux-omap@vger.kernel.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 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.