clk: Change clk_ops->determine_rate to return a clk_hw as the best parent
This is in preparation for clock providers to not have to deal with struct clk. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Michael Turquette <mturquette@linaro.org>
Este cometimento está contido em:

cometido por
Michael Turquette

ascendente
61c7cddfad
cometimento
646cafc6aa
@@ -81,7 +81,7 @@ static long clk_factors_round_rate(struct clk_hw *hw, unsigned long rate,
|
||||
|
||||
static long clk_factors_determine_rate(struct clk_hw *hw, unsigned long rate,
|
||||
unsigned long *best_parent_rate,
|
||||
struct clk **best_parent_p)
|
||||
struct clk_hw **best_parent_p)
|
||||
{
|
||||
struct clk *clk = hw->clk, *parent, *best_parent = NULL;
|
||||
int i, num_parents;
|
||||
@@ -108,7 +108,7 @@ static long clk_factors_determine_rate(struct clk_hw *hw, unsigned long rate,
|
||||
}
|
||||
|
||||
if (best_parent)
|
||||
*best_parent_p = best_parent;
|
||||
*best_parent_p = __clk_get_hw(best_parent);
|
||||
*best_parent_rate = best;
|
||||
|
||||
return best_child_rate;
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador