diff options
author | Chen-Yu Tsai <wens@csie.org> | 2019-04-22 02:15:05 +0300 |
---|---|---|
committer | Chen-Yu Tsai <wens@csie.org> | 2019-06-18 14:38:59 +0300 |
commit | 99600fd47eafd20b9ba6e04562bb2fcc48475344 (patch) | |
tree | 9bdf074b73391e573545bdabacd8160f01561d65 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2d156b78ce8febf15cd58a025d7d9d7b7577126a (diff) | |
download | linux-99600fd47eafd20b9ba6e04562bb2fcc48475344.tar.xz |
clk: Add CLK_HW_INIT_* macros using .parent_hws
With the new clk parenting code, struct clk_init_data was expanded to
include .parent_hws, for clk drivers to directly list parents by
pointing to their respective struct clk_hw's.
Add macros that can take either one single struct clk_hw *, or an array
of them, for drivers to use.
A special CLK_HW_INIT_HWS macro is included, which takes an array of
struct clk_hw *, but sets .num_parents to 1. This variant is to allow
the reuse of the array, instead of having a compound literal allocated
for each clk sharing the same parent.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions