Skip to content
Commit 95f9a7e5 authored by Philipp Tomsich's avatar Philipp Tomsich
Browse files

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: default avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: default avatarDavid Wu <david.wu@rock-chips.com>

Series-changes: 2
- Fixed David's email address.
parent f7d1046d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment