From: Andrew Lunn <andrew-g2DYL2Zd6BY@public.gmane.org>
To: Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
Cc: Andrew Lunn <andrew-g2DYL2Zd6BY@public.gmane.org>,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux ARM
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
sebastian.hesselbarth-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
Subject: Re: [PATCH] I2C: MV64XYZ: Add Device Tree support
Date: Tue, 24 Jul 2012 08:42:57 +0200 [thread overview]
Message-ID: <20120724064257.GQ18778@lunn.ch> (raw)
In-Reply-To: <20120723200359.GB31645-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
On Mon, Jul 23, 2012 at 10:03:59PM +0200, Wolfram Sang wrote:
> On Sun, Jul 22, 2012 at 12:51:35PM +0200, Andrew Lunn wrote:
> > Extends the driver to get properties from device tree. Rather than
> > pass the N & M factors in DT, use the more standard clock-frequency
> > property. Calculate N & M at run time. In order to do this, we need to
> > know tclk. So the driver uses clk_get() etc in order to get the clock
> > and clk_get_rate() to determine the tclk rate. Not all platforms
> > however have CLK, so some #ifdefery is needed to ensure the driver
> > still compiles when CLK is not available.
> >
> > Signed-off-by: Andrew Lunn <andrew-g2DYL2Zd6BY@public.gmane.org>
>
> Sparse complained about this:
>
> drivers/i2c/busses/i2c-mv64xxx.c:584:54: warning: incorrect type in argument 3 (different signedness)
> drivers/i2c/busses/i2c-mv64xxx.c:584:54: expected unsigned int [usertype] *out_value
> drivers/i2c/busses/i2c-mv64xxx.c:584:54: got int *<noident>
> drivers/i2c/busses/i2c-mv64xxx.c:586:41: warning: incorrect type in argument 3 (different signedness)
> drivers/i2c/busses/i2c-mv64xxx.c:586:41: expected int *best_n
> drivers/i2c/busses/i2c-mv64xxx.c:586:41: got unsigned int *<noident>
> drivers/i2c/busses/i2c-mv64xxx.c:586:60: warning: incorrect type in argument 4 (different signedness)
> drivers/i2c/busses/i2c-mv64xxx.c:586:60: expected int *best_m
> drivers/i2c/busses/i2c-mv64xxx.c:586:60: got unsigned int *<noident>
>
> I applied your patch with the following fix to -next. Let me know if you agree
> with that.
Hi Wolfram
Looks good, thanks for the fix.
Andrew
next prev parent reply other threads:[~2012-07-24 6:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-22 10:51 [PATCH] I2C: MV64XYZ: Add Device Tree support Andrew Lunn
[not found] ` <1342954295-13279-1-git-send-email-andrew-g2DYL2Zd6BY@public.gmane.org>
2012-07-23 20:03 ` Wolfram Sang
[not found] ` <20120723200359.GB31645-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2012-07-24 6:42 ` Andrew Lunn [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-07-20 17:00 Andrew Lunn
[not found] ` <1342803657-16611-1-git-send-email-andrew-g2DYL2Zd6BY@public.gmane.org>
2012-07-21 12:55 ` Wolfram Sang
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=20120724064257.GQ18778@lunn.ch \
--to=andrew-g2dyl2zd6by@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sebastian.hesselbarth-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org \
--cc=w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).