Home
last modified time | relevance | path

Searched hist:"2 ae83ee4a9c4733d431bfff3e674aaf2adb6b751" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/clk/
H A Dclk-uclass.c2ae83ee4a9c4733d431bfff3e674aaf2adb6b751 Mon Jan 08 10:18:18 UTC 2018 Philipp Tomsich <philipp.tomsich@theobroma-systems.com> 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.

(cherry picked from commit 95f9a7e5957093612b1e8447ac5460a6adcea3ba)

Change-Id: I898e38a99e63c851a0c8285670a4c86a711a6972
Signed-off-by: David Wu <david.wu@rock-chips.com>