]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
clk: fixed-rate: Add support for specifying parents via DT/pointers
authorStephen Boyd <sboyd@kernel.org>
Fri, 30 Aug 2019 15:09:17 +0000 (08:09 -0700)
committerStephen Boyd <sboyd@kernel.org>
Sun, 5 Jan 2020 21:35:12 +0000 (13:35 -0800)
commit2d34f09e79c9e96e9b748b320b9b0fa3d5e6b553
tree1953474bfeb2b323d041a12bd002cc0286bc5783
parent32205b75414e530dc6c95ac39f70ef8e194327e0
clk: fixed-rate: Add support for specifying parents via DT/pointers

After commit fc0c209c147f ("clk: Allow parents to be specified without
string names") we can use DT or direct clk_hw pointers to specify
parents. Create a generic function that shouldn't be used very often to
encode the multitude of ways of registering a fixed rate clk with
different parent information. Then add a bunch of wrapper macros that
only pass down what needs to be passed down to the generic function to
support this with less arguments.

Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20190830150923.259497-7-sboyd@kernel.org
drivers/clk/clk-fixed-rate.c
include/linux/clk-provider.h