1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/msm/hdmi
AngeloGioacchino Del Regno ec919e6e71 drm/msm: Allocate msm_drm_private early and pass it as driver data
In preparation for registering the mdss interrupt controller earlier,
move the allocation of msm_drm_private from component bind time to
msm_drv probe; this also allows us to use the devm variant of kzalloc.

Since it is not right to allocate the drm_device at probe time (as
it should exist only when all components are bound, and taken down
when components get cleaned up), the only way to make this happen is
to pass a pointer to msm_drm_private as driver data (like done in
many other DRM drivers), instead of one to drm_device like it's
currently done in this driver.

This is also simplifying some bind/unbind functions around drm/msm,
as some of them are using drm_device just to grab a pointer to the
msm_drm_private structure, which we now retrieve in one call.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20211201105210.24970-2-angelogioacchino.delregno@collabora.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
2021-12-06 09:22:51 -08:00
..
hdmi.c drm/msm: Allocate msm_drm_private early and pass it as driver data 2021-12-06 09:22:51 -08:00
hdmi.h drm/msm/hdmi: use bulk regulator API 2021-10-21 10:04:19 -07:00
hdmi.xml.h drm/msm: Generated register update 2021-06-23 07:33:54 -07:00
hdmi_audio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
hdmi_bridge.c drm/msm/hdmi: use bulk regulator API 2021-10-21 10:04:19 -07:00
hdmi_connector.c drm/msm/hdmi: use bulk regulator API 2021-10-21 10:04:19 -07:00
hdmi_hdcp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
hdmi_i2c.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
hdmi_phy.c drm/msm/hdmi: use bulk regulator API 2021-10-21 10:04:19 -07:00
hdmi_phy_8x60.c drm/msm: drop use of drmP.h 2019-09-03 16:16:57 -07:00
hdmi_phy_8x74.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
hdmi_phy_8960.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
hdmi_phy_8996.c drm: msm: hdmi: Constify static structs 2021-10-15 13:26:33 -07:00
hdmi_pll_8960.c drm/msm: drop use of drmP.h 2019-09-03 16:16:57 -07:00
qfprom.xml.h drm/msm: Generated register update 2021-06-23 07:33:54 -07:00