]> git.karo-electronics.de Git - karo-tx-linux.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)
commit774b514390b1eb8476bc759262790762bd1ef45a
treeb283823eca82e2e5a71fbd90b203da950fd96764
parent874f224cc52d64c912087e68e3724be95ad80ee7
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