History

clk: fixed-factor: Add CLK_FIXED_FACTOR_HW which takes clk_hw pointer as parent

With the new clk parenting code, clk_init_data was expanded to include .parent_hws, for clk drivers to directly reference parents by clk_hw. Add a new macro, CLK_FIXED_FACTOR_HW, that can take a struct clk_hw pointer, instead of a string, as its parent.

Chen-Yu Tsai committed 7 years ago

Commit d7b15111 parent 13933101 file · +11 −0Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/clk-provider.h+11−0
@@ -985,6 +985,17 @@ extern struct of_device_id __clk_of_table; · 984 unmodified lines
985985 _flags), \
986986 }
987987
988+#define CLK_FIXED_FACTOR_HW(_struct, _name, _parent, \
989+ _div, _mult, _flags) \
990+ struct clk_fixed_factor _struct = { \
991+ .div = _div, \
992+ .mult = _mult, \
993+ .hw.init = CLK_HW_INIT_HW(_name, \
994+ _parent, \
995+ &clk_fixed_factor_ops, \
996+ _flags), \
997+ }
998+
988999 #ifdef CONFIG_OF
9891000 int of_clk_add_provider(struct device_node *np,
9901001 struct clk *(*clk_src_get)(struct of_phandle_args *args,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t