]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: apcs-msm8916: use clk_parent_data to specify the parent
authorNiklas Cassel <niklas.cassel@linaro.org>
Fri, 3 Jan 2020 11:14:29 +0000 (12:14 +0100)
committerStephen Boyd <sboyd@kernel.org>
Sun, 5 Jan 2020 07:15:47 +0000 (23:15 -0800)
commite5ca232d71c1b709de1a1c3c2730eeafe743d501
tree150916ac00e9708d023dda6ac5a201817a1a39fb
parentec5b035d140f8e611c3c27843a9ea433eadc1212
clk: qcom: apcs-msm8916: use clk_parent_data to specify the parent

Allow accessing the parent clock names required for the driver operation
by using the device tree 'clock-names' property, while falling back to
the previous method of using names in the global name space.

This permits extending the driver to other platforms without having to
modify its source code.

Co-developed-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
Link: https://lkml.kernel.org/r/20200103111429.1347-1-nks@flawful.org
Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/apcs-msm8916.c