Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: st: Use round to closest divider flag

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>

authored by

Gabriel FERNANDEZ and committed by
Mike Turquette
eee40bb4 f1a788ff

+2 -1
+2 -1
drivers/clk/st/clkgen-mux.c
··· 774 774 div->reg = reg + VCC_DIV_OFFSET; 775 775 div->shift = 2 * i; 776 776 div->width = 2; 777 - div->flags = CLK_DIVIDER_POWER_OF_TWO; 777 + div->flags = CLK_DIVIDER_POWER_OF_TWO | 778 + CLK_DIVIDER_ROUND_CLOSEST; 778 779 779 780 mux->reg = reg + VCC_MUX_OFFSET; 780 781 mux->shift = 2 * i;