]> git.baikalelectronics.ru Git - kernel.git/commit
clk: divider: Add round to closest divider
authorMaxime COQUELIN <maxime.coquelin@st.com>
Wed, 29 Jan 2014 16:24:07 +0000 (17:24 +0100)
committerMike Turquette <mturquette@linaro.org>
Wed, 30 Apr 2014 18:51:26 +0000 (11:51 -0700)
commit97e5f2a418cd38d904ae0b0a8c246c48e75d555b
treeb283823eca82e2e5a71fbd90b203da950fd96764
parentc2da57e4849d5693918402105d4dd4402011db95
clk: divider: Add round to closest divider

In some cases, we want to be able to round the divider to the closest one,
instead than rounding up.

This patch adds a new CLK_DIVIDER_ROUND_CLOSEST flag to specify the divider
has to round to closest div, keeping rounding up as de default behaviour.

Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-divider.c
include/linux/clk-provider.h