memory: tegra: Introduce struct tegra_mc_ops
authorThierry Reding <treding@nvidia.com>
Wed, 2 Jun 2021 16:32:53 +0000 (18:32 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Thu, 3 Jun 2021 19:49:40 +0000 (21:49 +0200)
commit6cc884c1c7fe5ae9362180d4f7d4091774921a0c
tree33636266779e77ab83a80337f2b98f60d01efe44
parente899993845e60cc24d8e667a312eaa03a05d21ec
memory: tegra: Introduce struct tegra_mc_ops

Subsequent patches will introduce further callbacks, so create a new
struct tegra_mc_ops to collect all of them in a single place. Move the
existing ->init() callback into the new structure.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20210602163302.120041-4-thierry.reding@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/tegra/mc.c
drivers/memory/tegra/tegra20.c
include/soc/tegra/mc.h