aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/dsi/pll
diff options
context:
space:
mode:
authorHai Li <hali@codeaurora.org>2015-08-13 17:45:53 -0400
committerRob Clark <robdclark@gmail.com>2015-08-15 18:27:29 -0400
commit1bf4d7c5651a7cfcdcd77389b42d266441ecf444 (patch)
treea717863d41f4db6597b51c6cf66c5ea67e7f0a48 /drivers/gpu/drm/msm/dsi/pll
parent5c8290284402bf7d2c12269402b3177b899c78b7 (diff)
drm/msm/dsi: Make each PHY type compilation independent
On a certain platform, only one type of DSI PHY is used. This change allows the user to only compile the PHY type which is being used. Signed-off-by: Hai Li <hali@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/dsi/pll')
-rw-r--r--drivers/gpu/drm/msm/dsi/pll/dsi_pll.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/dsi/pll/dsi_pll.h b/drivers/gpu/drm/msm/dsi/pll/dsi_pll.h
index b69df19f1fd4..063caa2c5740 100644
--- a/drivers/gpu/drm/msm/dsi/pll/dsi_pll.h
+++ b/drivers/gpu/drm/msm/dsi/pll/dsi_pll.h
@@ -83,8 +83,16 @@ void msm_dsi_pll_helper_unregister_clks(struct platform_device *pdev,
83/* 83/*
84 * Initialization for Each PLL Type 84 * Initialization for Each PLL Type
85 */ 85 */
86#ifdef CONFIG_DRM_MSM_DSI_28NM_PHY
86struct msm_dsi_pll *msm_dsi_pll_28nm_init(struct platform_device *pdev, 87struct msm_dsi_pll *msm_dsi_pll_28nm_init(struct platform_device *pdev,
87 enum msm_dsi_phy_type type, int id); 88 enum msm_dsi_phy_type type, int id);
89#else
90static inline struct msm_dsi_pll *msm_dsi_pll_28nm_init(
91 struct platform_device *pdev, enum msm_dsi_phy_type type, int id)
92{
93 return ERR_PTR(-ENODEV);
94}
95#endif
88 96
89#endif /* __DSI_PLL_H__ */ 97#endif /* __DSI_PLL_H__ */
90 98