public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] I2C: TWL4030: Fix wrong variable warning
@ 2008-04-11 11:51 Felipe Balbi
  2008-04-11 19:05 ` Tony Lindgren
  0 siblings, 1 reply; 3+ messages in thread
From: Felipe Balbi @ 2008-04-11 11:51 UTC (permalink / raw)
  To: linux-omap; +Cc: Felipe Balbi

twl4030_i2c_write_u8 expects a u8 variable.
Change ctrl to be u8 in power_companion_init().

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
---
 drivers/i2c/chips/twl4030-core.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/i2c/chips/twl4030-core.c b/drivers/i2c/chips/twl4030-core.c
index eedbebd..934433e 100644
--- a/drivers/i2c/chips/twl4030-core.c
+++ b/drivers/i2c/chips/twl4030-core.c
@@ -679,7 +679,8 @@ static int unprotect_pm_master(void)
 static int power_companion_init(void)
 {
 	struct clk *osc;
-	u32 rate, ctrl = HFCLK_FREQ_26_MHZ;
+	u32 rate;
+	u8 ctrl = HFCLK_FREQ_26_MHZ;
 	int e = 0;
 
 	if (cpu_is_omap2430())
-- 
1.5.5.29.g7134


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-14 18:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-11 11:51 [PATCH] I2C: TWL4030: Fix wrong variable warning Felipe Balbi
2008-04-11 19:05 ` Tony Lindgren
2008-04-14 18:13   ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox