From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 8 Nov 2011 17:59:40 +0100 Subject: [U-Boot] [PATCH] fsl_i2c: Fix compile warning In-Reply-To: <1320759583-22174-1-git-send-email-galak@kernel.crashing.org> References: <1320759583-22174-1-git-send-email-galak@kernel.crashing.org> Message-ID: <201111081759.41037.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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 > --- > drivers/i2c/fsl_i2c.c | 2 +- > 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; Kumar, just a offtopic question. Is this driver actually handling the same IP block as mxc_i2c driver (aka. is it the same IP block as used in iMX ARM CPUs)? M