]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: Store parent pointer in Tegra DRM clients
authorThierry Reding <treding@nvidia.com>
Fri, 1 Feb 2019 13:28:31 +0000 (14:28 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 7 Feb 2019 17:28:59 +0000 (18:28 +0100)
commitccee6cc30fc0655f4caff345becfe9346ee24b88
treeff69eb5ea30fe14173a8114789e5721609d128a2
parentcac36c7098c7f59a3f56c33d4a204ff2dddfd2f2
drm/tegra: Store parent pointer in Tegra DRM clients

Tegra DRM clients need access to their parent, so store a pointer to it
upon registration. It's technically possible to get at this by going via
the host1x client's parent and getting the driver data, but that's quite
complicated and not very transparent. It's much more straightforward and
natural to let the children know about their parent.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
drivers/gpu/drm/tegra/drm.c
drivers/gpu/drm/tegra/drm.h