]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit74a034f848689ccc1d7fdb3c9395a6650fc76543
tree33636266779e77ab83a80337f2b98f60d01efe44
parentf7cdd232d504ab27d29687f6f55451e7d900660e
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