[PATCH v2 25/34] clk: tegra: bpmp: change tegra_bpmp_clk_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX

[PATCH v2 25/34] clk: tegra: bpmp: change tegra_bpmp_clk_round_rate() return logic

2018-01-01 Thread Bryan O'Donoghue
This patch updates the round_rate() logic here to return zero instead of a negative number on error. In conjunction with higher-level changes associated with acting on the return value of clk_ops->round_rate() it is then possible to have clk_ops->round_rate() return values from 1 Hz to ULONG_MAX