soc/tegra: pmc: Pass struct tegra_pmc * where possible
authorThierry Reding <treding@nvidia.com>
Fri, 25 Jan 2019 10:22:52 +0000 (11:22 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 25 Jan 2019 15:18:23 +0000 (16:18 +0100)
commit589997a157df82fa04fec63ef4d01e73545fd415
tree9010d62fb857a1ef387f00ca0759e3f4532ca810
parentd32dde2c5a110f2d69add70d7a9f1c20d82d0ef1
soc/tegra: pmc: Pass struct tegra_pmc * where possible

Instead of using the global pmc variable, pass around a pointer where
possible. Also, replace most occurrences of pr_*() functions by their
equivalent dev_*() functions, reusing the pmc->dev pointer.

It's not possible to get completely rid of the global variable because
some of the public API that this driver exposes still relies on it.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
drivers/soc/tegra/pmc.c