summaryrefslogtreecommitdiff
path: root/scripts/mod/empty.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2017-05-17 10:40:30 +0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-06-07 16:32:12 +0300
commit22833a9165a1c72a54ddc696a3765bd6f87fbb92 (patch)
treec7633d35fa9dc645da3f64f3602b7a8999a68742 /scripts/mod/empty.c
parentb042e42feec495dd199525d3f88ffb323e5ec199 (diff)
downloadlinux-22833a9165a1c72a54ddc696a3765bd6f87fbb92.tar.xz
clk: divider: Make divider_round_rate take the parent clock
So far, divider_round_rate only considers the parent clock returned by clk_hw_get_parent. This works fine on clocks that have a single parents, this doesn't work on muxes, since we will only consider the first parent, while other parents may totally be able to provide a better combination. Clocks in that case cannot use divider_round_rate, so would have to come up with a very similar logic to work around it. Instead of having to do something like this, and duplicate that logic everywhere, create a divider_round_rate parent to allow caller to give an additional parameter for the parent clock to consider. Reviewed-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'scripts/mod/empty.c')
0 files changed, 0 insertions, 0 deletions