From: Amit Kucheria <amit.kucheria@canonical.com>
To: balajitk@ti.com
Cc: linux-omap@vger.kernel.org, sameo@linux.intel.com, wim@iguana.be,
timo.t.kokkonen@nokia.com, ben-linux@fluff.org,
lrg@slimlogic.co.uk, broonie@opensource.wolfsonmicro.com,
p_gortmaker@yahoo.com, a.zummo@towertech.it,
Rajendra Nayak <rnayak@ti.com>,
Santosh Shilimkar <santosh.shilimkar@ti.com>
Subject: Re: [PATCH v3 02/04] ARM: OMAP: Rename all twl4030_i2c*.
Date: Thu, 1 Oct 2009 15:48:17 +0300 [thread overview]
Message-ID: <20091001124817.GS32041@smtp.gmail.com> (raw)
In-Reply-To: <1254399576-3645-1-git-send-email-balajitk@ti.com>
On 09 Oct 01, balajitk@ti.com wrote:
> From: Balaji T K <balajitk@ti.com>
>
> This patch renames function names like twl4030_i2c_write_u8,
> twl4030_i2c_read_u8 to twl_i2c_write_u8, twl_i2c_read_u8.
> I2C address for modules(MADC, Battery Charger, Audio, RTC)
> have changed between 4030 and 6030. Base address of these module register also
> changed. Thus twl4030_map will be different for twl4030 and twl6030.
>
> Signed-off-by: Rajendra Nayak <rnayak@ti.com>
> Signed-off-by: Balaji T K <balajitk@ti.com>
> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
> Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
> Acked-by: Samuel Ortiz <sameo@linux.intel.com>
> ---
<lots of snipping>
> @@ -652,9 +661,9 @@ static inline int __init unprotect_pm_master(void)
> {
> int e = 0;
>
> - e |= twl4030_i2c_write_u8(TWL4030_MODULE_PM_MASTER, KEY_UNLOCK1,
> + e |= twl_i2c_write_u8(TWL_MODULE_PM_MASTER, KEY_UNLOCK1,
> R_PROTECT_KEY);
> - e |= twl4030_i2c_write_u8(TWL4030_MODULE_PM_MASTER, KEY_UNLOCK2,
> + e |= twl_i2c_write_u8(TWL_MODULE_PM_MASTER, KEY_UNLOCK2,
> R_PROTECT_KEY);
> return e;
> }
We should fix this code to return an error immediately, instead of OR'ing the
return values. Perhaps as a separate patch.
> @@ -673,7 +682,7 @@ static void clocks_init(struct device *dev)
> osc = clk_get(dev, "osc_sys_ck");
>
> if (IS_ERR(osc)) {
> - printk(KERN_WARNING "Skipping twl4030 internal clock init and "
> + printk(KERN_WARNING "Skipping twl internal clock init and "
> "using bootloader value (unknown osc rate)\n");
> return;
> }
> @@ -687,7 +696,7 @@ static void clocks_init(struct device *dev)
> */
> osc = ERR_PTR(-EIO);
>
> - printk(KERN_WARNING "Skipping twl4030 internal clock init and "
> + printk(KERN_WARNING "Skipping twl internal clock init and "
> "using bootloader value (unknown osc rate)\n");
>
> return;
> @@ -708,7 +717,7 @@ static void clocks_init(struct device *dev)
> ctrl |= HIGH_PERF_SQ;
> e |= unprotect_pm_master();
> /* effect->MADC+USB ck en */
> - e |= twl4030_i2c_write_u8(TWL4030_MODULE_PM_MASTER, ctrl, R_CFG_BOOT);
> + e |= twl_i2c_write_u8(TWL_MODULE_PM_MASTER, ctrl, R_CFG_BOOT);
> e |= protect_pm_master();
And here.
Regards,
Amit
--
-------------------------------------------------------------------------
Amit Kucheria, Kernel Developer, Verdurent
-------------------------------------------------------------------------
prev parent reply other threads:[~2009-10-01 12:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-01 12:19 [PATCH v3 02/04] ARM: OMAP: Rename all twl4030_i2c* balajitk
2009-10-01 12:48 ` Amit Kucheria [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=20091001124817.GS32041@smtp.gmail.com \
--to=amit.kucheria@canonical.com \
--cc=a.zummo@towertech.it \
--cc=balajitk@ti.com \
--cc=ben-linux@fluff.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=linux-omap@vger.kernel.org \
--cc=lrg@slimlogic.co.uk \
--cc=p_gortmaker@yahoo.com \
--cc=rnayak@ti.com \
--cc=sameo@linux.intel.com \
--cc=santosh.shilimkar@ti.com \
--cc=timo.t.kokkonen@nokia.com \
--cc=wim@iguana.be \
/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.