aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/edp/edp.h
diff options
context:
space:
mode:
authorLyude Paul <lyude@redhat.com>2021-04-23 14:42:55 -0400
committerLyude Paul <lyude@redhat.com>2021-04-27 18:43:42 -0400
commit6cba3fe433415b2549c909ce72601902c8254a83 (patch)
treec5b515f79bfbdd309e30f95a3136c2bb4ec6cf76 /drivers/gpu/drm/msm/edp/edp.h
parentdrm/nouveau/kms/nv50-: Move AUX adapter reg to connector late register/early unregister (diff)
downloadlinux-dev-6cba3fe433415b2549c909ce72601902c8254a83.tar.xz
linux-dev-6cba3fe433415b2549c909ce72601902c8254a83.zip
drm/dp: Add backpointer to drm_device in drm_dp_aux
This is something that we've wanted for a while now: the ability to actually look up the respective drm_device for a given drm_dp_aux struct. This will also allow us to transition over to using the drm_dbg_*() helpers for debug message printing, as we'll finally have a drm_device to reference for doing so. Note that there is one limitation with this - because some DP AUX adapters exist as platform devices which are initialized independently of their respective DRM devices, one cannot rely on drm_dp_aux->drm_dev to always be non-NULL until drm_dp_aux_register() has been called. We make sure to point this out in the documentation for struct drm_dp_aux. v3: * Add WARN_ON_ONCE() to drm_dp_aux_register() if drm_dev isn't filled out Signed-off-by: Lyude Paul <lyude@redhat.com> Acked-by: Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210423184309.207645-4-lyude@redhat.com Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/msm/edp/edp.h')
-rw-r--r--drivers/gpu/drm/msm/edp/edp.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/edp/edp.h b/drivers/gpu/drm/msm/edp/edp.h
index eb34243dad53..8590f2ce274d 100644
--- a/drivers/gpu/drm/msm/edp/edp.h
+++ b/drivers/gpu/drm/msm/edp/edp.h
@@ -46,8 +46,7 @@ void edp_bridge_destroy(struct drm_bridge *bridge);
struct drm_connector *msm_edp_connector_init(struct msm_edp *edp);
/* AUX */
-void *msm_edp_aux_init(struct device *dev, void __iomem *regbase,
- struct drm_dp_aux **drm_aux);
+void *msm_edp_aux_init(struct msm_edp *edp, void __iomem *regbase, struct drm_dp_aux **drm_aux);
void msm_edp_aux_destroy(struct device *dev, struct edp_aux *aux);
irqreturn_t msm_edp_aux_irq(struct edp_aux *aux, u32 isr);
void msm_edp_aux_ctrl(struct edp_aux *aux, int enable);