summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_dpll_mgr.h
diff options
context:
space:
mode:
authorLucas De Marchi2018-03-20 23:06:35 +0100
committerRodrigo Vivi2018-03-27 19:35:41 +0200
commit0823eb9c52f9e47564277e5bdd6b78cd95cf9f9c (patch)
tree46c32627248772d250728da06f74558fdae0279f /drivers/gpu/drm/i915/intel_dpll_mgr.h
parentdrm/i915: use name from intel_shared_dpll.info (diff)
downloadkernel-qcow2-linux-0823eb9c52f9e47564277e5bdd6b78cd95cf9f9c.tar.gz
kernel-qcow2-linux-0823eb9c52f9e47564277e5bdd6b78cd95cf9f9c.tar.xz
kernel-qcow2-linux-0823eb9c52f9e47564277e5bdd6b78cd95cf9f9c.zip
drm/i915: use id from intel_shared_dpll.info
Replace all users of pll->id to use pll->info->id. In functions using this more than once it was preferred to add an id variable to make the code easier to read. Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180320220637.21480-6-lucas.demarchi@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dpll_mgr.h')
-rw-r--r--drivers/gpu/drm/i915/intel_dpll_mgr.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/intel_dpll_mgr.h b/drivers/gpu/drm/i915/intel_dpll_mgr.h
index e5ed3e0269e3..7c95ecce41ee 100644
--- a/drivers/gpu/drm/i915/intel_dpll_mgr.h
+++ b/drivers/gpu/drm/i915/intel_dpll_mgr.h
@@ -213,6 +213,10 @@ struct dpll_info {
* @name: DPLL name; used for logging
*/
const char *name;
+ /**
+ * @id: unique indentifier for this DPLL; should match the index in the
+ * dev_priv->shared_dplls array
+ */
const int id;
/**
* @funcs: platform specific hooks
@@ -244,12 +248,6 @@ struct intel_shared_dpll {
bool on;
/**
- * @id: unique indentifier for this DPLL; should match the index in the
- * dev_priv->shared_dplls array
- */
- enum intel_dpll_id id;
-
- /**
* @info: platform specific info
*/
const struct dpll_info *info;