Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db5cda42 authored by Junjie Wu's avatar Junjie Wu
Browse files

msm-clock-provider: Add CLK_LIST macro



Clock lookup table is deprecated, but a list of clocks are still needed
for clock registration. Create a new macro for listing clocks.

Change-Id: I36497949dfa26ce4510c32d2966708800359e993
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent 08a9c39e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -222,6 +222,7 @@ extern struct clk_ops clk_ops_dummy;
#define CLK_LOOKUP(con, c, dev) { .con_id = con, .clk = &c, .dev_id = dev }
#define CLK_LOOKUP_OF(con, _c, dev) { .con_id = con, .clk = &(&_c)->c, \
				      .dev_id = dev, .of_idx = clk_##_c }
#define CLK_LIST(_c) { .clk = &(&_c)->c, .of_idx = clk_##_c }

static inline bool is_better_rate(unsigned long req, unsigned long best,
				  unsigned long new)