]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: gate: Add support for specifying parents via DT/pointers
authorStephen Boyd <sboyd@kernel.org>
Fri, 30 Aug 2019 15:09:22 +0000 (08:09 -0700)
committerStephen Boyd <sboyd@kernel.org>
Tue, 7 Jan 2020 07:10:12 +0000 (23:10 -0800)
commit194efb6e2667cc226fa92a6a4ab5d2298b5b85d9
treee4da280dff2ba43434deafc510040b019ca08bd2
parent9611b3aacc1c1af7cb96d35ca5f1e55fdd44f697
clk: gate: 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 gate 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-12-sboyd@kernel.org
drivers/clk/clk-gate.c
include/linux/clk-provider.h