drm/msm/dsi: Remove custom DSI config handling
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Sat, 18 Mar 2023 13:42:53 +0000 (14:42 +0100)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 6 Apr 2023 17:29:45 +0000 (20:29 +0300)
Now that the only user is handled by common code, remove the option to
specify custom handlers through match data.

This is effectively a revert of commit:
5ae15e76271 ("drm/msm/dsi: Allow to specify dsi config as pdata")

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/527662/
Link: https://lore.kernel.org/r/20230307-topic-dsi_qcm-v6-7-70e13b1214fa@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/dsi/dsi.c
drivers/gpu/drm/msm/dsi/dsi_host.c

index f761973e4cbada5ce8670724eb00fd640bfe2d3e..baab79ab6e745efee6690a9cc7d6c5df5f9a6321 100644 (file)
@@ -172,10 +172,10 @@ static int dsi_dev_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id dt_match[] = {
-       { .compatible = "qcom,mdss-dsi-ctrl", .data = NULL /* autodetect cfg */ },
+       { .compatible = "qcom,mdss-dsi-ctrl" },
 
        /* Deprecated, don't use */
-       { .compatible = "qcom,dsi-ctrl-6g-qcm2290", .data = NULL },
+       { .compatible = "qcom,dsi-ctrl-6g-qcm2290" },
        {}
 };
 
index 9cfb9e91bfea09364301ce1278385c684a6ef669..961689a255c476cba49d3deb9e8151467de07894 100644 (file)
@@ -214,10 +214,6 @@ static const struct msm_dsi_cfg_handler *dsi_get_config(
        int ret;
        u32 major = 0, minor = 0;
 
-       cfg_hnd = device_get_match_data(dev);
-       if (cfg_hnd)
-               return cfg_hnd;
-
        ahb_clk = msm_clk_get(msm_host->pdev, "iface");
        if (IS_ERR(ahb_clk)) {
                pr_err("%s: cannot get interface clock\n", __func__);