diff options
author | Jerome Brunet <[email protected]> | 2020-10-21 18:21:46 +0200 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2020-11-14 12:56:57 -0800 |
commit | 30d6f8c15d2cd877c1f3d47d8a1064649ebe58e2 (patch) | |
tree | c03c9dccd1dca036137efdd6e4bad005484a5abb /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e5a4b9b99e5b70a41578e78d30349315772add1b (diff) |
clk: add api to get clk consumer from clk_hw
clk_register() is deprecated. Using 'clk' member of struct clk_hw is
discouraged. With this constraint, it is difficult for driver to
register clocks using the clk_hw API and then use the clock with
the consumer API
This adds a simple helper, clk_hw_get_clk(), to get a struct clk from
a struct clk_hw. Like other clk_get() variant, each call to this helper
must be balanced with a call to clk_put(). To make life easier on the
consumers, a memory managed version is provided as well.
Cc: Martin Blumenstingl <[email protected]>
Signed-off-by: Jerome Brunet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Kevin Hilman <[email protected]>
[[email protected]: Fix kernel-doc]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions