All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] fsl_i2c: Fix compile warning
Date: Tue, 8 Nov 2011 17:59:40 +0100	[thread overview]
Message-ID: <201111081759.41037.marek.vasut@gmail.com> (raw)
In-Reply-To: <1320759583-22174-1-git-send-email-galak@kernel.crashing.org>

> 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>
> ---
>  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

  reply	other threads:[~2011-11-08 16:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-08 13:39 [U-Boot] [PATCH] fsl_i2c: Fix compile warning Kumar Gala
2011-11-08 16:59 ` Marek Vasut [this message]
2011-11-08 17:14   ` Kumar Gala
2011-11-09  5:29 ` Heiko Schocher

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=201111081759.41037.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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.