Skip to content

Commit

Permalink
clk: st: Use round to closest divider flag
Browse files Browse the repository at this point in the history
This patch uses CLK_DIVIDER_ROUND_CLOSEST flag to specify
the divider has to round to closest div.

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@linaro.org>
Acked-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
  • Loading branch information
Gabriel FERNANDEZ authored and Mike Turquette committed Jul 29, 2014
1 parent f1a788f commit eee40bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/clk/st/clkgen-mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,8 @@ void __init st_of_clkgen_vcc_setup(struct device_node *np)
div->reg = reg + VCC_DIV_OFFSET;
div->shift = 2 * i;
div->width = 2;
div->flags = CLK_DIVIDER_POWER_OF_TWO;
div->flags = CLK_DIVIDER_POWER_OF_TWO |
CLK_DIVIDER_ROUND_CLOSEST;

mux->reg = reg + VCC_MUX_OFFSET;
mux->shift = 2 * i;
Expand Down

0 comments on commit eee40bb

Please sign in to comment.