diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2018-01-08 11:18:18 +0100 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2018-01-28 17:12:35 +0100 |
commit | 95f9a7e5957093612b1e8447ac5460a6adcea3ba (patch) | |
tree | 86a91ca2faedf0949a86cdcd53baa6eb7dab9722 /drivers/clk/rockchip/clk_rk3399.c | |
parent | f7d1046da18fd03a047b5f4d290a8ab8550ebf73 (diff) |
clk: refactor clk_get_by_index() into clk_get_by_indexed_prop()
The logic in clk_get_by_index() may be useful for other properties
than 'clocks': e.g. 'assigned-clocks' and 'assigned-clock-parents'
follows the same model.
This commit refactors clk_get_by_index() by introducing an internal
function clk_get_by_indexed_prop() that allows to specify the name
of the property to process. The original clk_get_by_index() call
is simply directed through this helper function with the property
name fixed to "clocks".
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: David Wu <david.wu@rock-chips.com>
Series-changes: 2
- Fixed David's email address.
Diffstat (limited to 'drivers/clk/rockchip/clk_rk3399.c')
0 files changed, 0 insertions, 0 deletions