summaryrefslogtreecommitdiff
path: root/drivers/i2c/fsl_i2c.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2011-11-08 03:39:43 +0000
committerHeiko Schocher <hs@denx.de>2011-11-09 06:28:20 +0100
commitaa5512157b76a66858d88e02156894f8cd511791 (patch)
tree0155277999a4d5537a7ce7d9cd548cbb403b758d /drivers/i2c/fsl_i2c.c
parent5721385b187b3154c7768e6c182501022f4e2e45 (diff)
downloadu-boot-imx-aa5512157b76a66858d88e02156894f8cd511791.zip
u-boot-imx-aa5512157b76a66858d88e02156894f8cd511791.tar.gz
u-boot-imx-aa5512157b76a66858d88e02156894f8cd511791.tar.bz2
fsl_i2c: Fix compile warning
fsl_i2c.c: In function 'i2c_init': fsl_i2c.c:245:7: warning: assignment discards qualifiers from pointer target type Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'drivers/i2c/fsl_i2c.c')
-rw-r--r--drivers/i2c/fsl_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c
index 258be0a..5b017a9 100644
--- a/drivers/i2c/fsl_i2c.c
+++ b/drivers/i2c/fsl_i2c.c
@@ -225,7 +225,7 @@ unsigned int get_i2c_clock(int bus)
void
i2c_init(int speed, int slaveadd)
{
- struct fsl_i2c *dev;
+ const struct fsl_i2c *dev;
unsigned int temp;
int bus_num, i;