drm/i915/cnl: make function cnl_ddi_dp_set_dpll_hw_state static
authorColin Ian King <colin.king@canonical.com>
Tue, 13 Jun 2017 13:47:51 +0000 (14:47 +0100)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 15 Jun 2017 12:53:56 +0000 (15:53 +0300)
The function cnl_ddi_dp_set_dpll_hw_state does not need to be in global
scope, so make it static.

Cleans up sparse warning:
"symbol 'cnl_ddi_dp_set_dpll_hw_state' was not declared. Should it
 be static?"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170613134751.29196-1-colin.king@canonical.com
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/intel_dpll_mgr.c

index 8e669b6254ae721ce4cda32e17298cf091ed6d4c..2f7b0e64f6284553ec151f00605dab2b94908003 100644 (file)
@@ -2292,8 +2292,9 @@ static bool cnl_ddi_hdmi_pll_dividers(struct intel_crtc *crtc,
        return true;
 }
 
-bool cnl_ddi_dp_set_dpll_hw_state(int clock,
-                                 struct intel_dpll_hw_state *dpll_hw_state)
+static bool
+cnl_ddi_dp_set_dpll_hw_state(int clock,
+                            struct intel_dpll_hw_state *dpll_hw_state)
 {
        uint32_t cfgcr0;