Re: [PATCH 2/2] clk/zynq/pll: Use #defines for fbdiv min/max values

From: Joe Perches
Date: Fri Jul 19 2013 - 15:12:17 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/