[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1374261131.2059.5.camel@joe-AO722>
Date: Fri, 19 Jul 2013 12:12:11 -0700
From: Joe Perches <joe@...ches.com>
To: Soren Brinkmann <soren.brinkmann@...inx.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Mike Turquette <mturquette@...aro.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH 2/2] clk/zynq/pll: Use #defines for fbdiv min/max values
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists