cpufreq: qcom: Refactor the driver to make it easier to extend
authorNiklas Cassel <niklas.cassel@linaro.org>
Thu, 25 Jul 2019 10:41:33 +0000 (12:41 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 3 Sep 2019 02:25:00 +0000 (07:55 +0530)
commit57f2f8b4aa0c6b41a284da82bfa40dc3b2abe9a5
tree32748bc3335f16b430705319dea1ea0d65bea36b
parent7d12709544b8b3fb9727a34a664b8380e1e3493a
cpufreq: qcom: Refactor the driver to make it easier to extend

Refactor the driver to make it easier to extend in a later commit.

Create a driver struct to collect all common resources, in order to make
it easier to free up all common resources.
Create a driver match_data struct to make it easier to extend the driver
with support for new features that might only be supported on certain SoCs.

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>
Reviewed-by: Ilia Lin <ilia.lin@kernel.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-nvmem.c