From: joe@perches.com (Joe Perches)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] clk/zynq/pll: Use #defines for fbdiv min/max values
Date: Fri, 19 Jul 2013 12:12:11 -0700 [thread overview]
Message-ID: <1374261131.2059.5.camel@joe-AO722> (raw)
In-Reply-To: <1632076624.115.1374260902674.JavaMail.mail@webmail02>
On Fri, 2013-07-19 at 10:16 -0700, Soren Brinkmann wrote:
> Use more descriptive #defines for the minimum and maximum PLL
> feedback divider.
trivial
> diff --git a/drivers/clk/zynq/pll.c b/drivers/clk/zynq/pll.c
[]
> @@ -63,10 +66,10 @@ static long zynq_pll_round_rate(struct clk_hw *hw, unsigned long rate,
> u32 fbdiv;
>
> fbdiv = DIV_ROUND_CLOSEST(rate, *prate);
> - if (fbdiv < 13)
> - fbdiv = 13;
> - else if (fbdiv > 66)
> - fbdiv = 66;
> + if (fbdiv < PLL_FBDIV_MIN)
> + fbdiv = PLL_FBDIV_MIN;
> + else if (fbdiv > PLL_FBDIV_MAX)
> + fbdiv = PLL_FBDIV_MAX;
clamp
prev parent reply other threads:[~2013-07-19 19:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-19 17:16 [PATCH 1/2] clk/zynq/pll: Fix documentation for PLL register function Soren Brinkmann
2013-07-19 17:16 ` [PATCH 2/2] clk/zynq/pll: Use #defines for fbdiv min/max values Soren Brinkmann
[not found] ` <1632076624.115.1374260902674.JavaMail.mail@webmail02>
2013-07-19 19:12 ` Joe Perches [this message]
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=1374261131.2059.5.camel@joe-AO722 \
--to=joe@perches.com \
--cc=linux-arm-kernel@lists.infradead.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).