]> Gentwo Git Trees - linux/.git/commitdiff
drm/bridge: dw-hdmi: Add API dw_hdmi_to_plat_data() to get plat_data
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 23 Sep 2025 05:29:57 +0000 (13:29 +0800)
committerLiu Ying <victor.liu@nxp.com>
Mon, 29 Sep 2025 01:46:03 +0000 (09:46 +0800)
Add API dw_hdmi_to_plat_data() to fetch plat_data because audio device
driver needs it to enable(disable)_audio().

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Liu Ying <victor.liu@nxp.com>
Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Link: https://lore.kernel.org/r/20250923053001.2678596-4-shengjiu.wang@nxp.com
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
include/drm/bridge/dw_hdmi.h

index 206b099a35e9a5730024b61d686d6c28bdb1b560..8d096b569cf16cc3e99ce25a944ef949c95a191a 100644 (file)
@@ -198,6 +198,12 @@ struct dw_hdmi {
        enum drm_connector_status last_connector_result;
 };
 
+const struct dw_hdmi_plat_data *dw_hdmi_to_plat_data(struct dw_hdmi *hdmi)
+{
+       return hdmi->plat_data;
+}
+EXPORT_SYMBOL_GPL(dw_hdmi_to_plat_data);
+
 #define HDMI_IH_PHY_STAT0_RX_SENSE \
        (HDMI_IH_PHY_STAT0_RX_SENSE0 | HDMI_IH_PHY_STAT0_RX_SENSE1 | \
         HDMI_IH_PHY_STAT0_RX_SENSE2 | HDMI_IH_PHY_STAT0_RX_SENSE3)
index 6a46baa0737cd082927bb85afe9cf3434969a24b..b8fc4fdf5a216a260c59a4f0d2cbc5e4f533f967 100644 (file)
@@ -208,4 +208,6 @@ void dw_hdmi_phy_setup_hpd(struct dw_hdmi *hdmi, void *data);
 
 bool dw_hdmi_bus_fmt_is_420(struct dw_hdmi *hdmi);
 
+const struct dw_hdmi_plat_data *dw_hdmi_to_plat_data(struct dw_hdmi *hdmi);
+
 #endif /* __IMX_HDMI_H__ */