diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2018-03-20 15:06:32 -0700 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2018-03-27 10:35:11 -0700 |
commit | e30379637fc712991ec8fff1f79344f384ace0aa (patch) | |
tree | 9c09e41e65b3bd78152b17ae6433b49b417d97ad | |
parent | 47aa1e73e72e5e0f5a07e30b84478461195845f5 (diff) |
drm/i915: add dpll_info inside intel_shared_dpll
This way we can stop copying fields from dpll_info to intel_shared_dpll
one by one. The migration of each field will come on separate patches.
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-3-lucas.demarchi@intel.com
-rw-r--r-- | drivers/gpu/drm/i915/intel_dpll_mgr.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_dpll_mgr.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_dpll_mgr.c b/drivers/gpu/drm/i915/intel_dpll_mgr.c index 52d6e731c3e9..30a9ac5322fe 100644 --- a/drivers/gpu/drm/i915/intel_dpll_mgr.c +++ b/drivers/gpu/drm/i915/intel_dpll_mgr.c @@ -2410,6 +2410,7 @@ void intel_shared_dpll_init(struct drm_device *dev) for (i = 0; dpll_info[i].id >= 0; i++) { WARN_ON(i != dpll_info[i].id); + dev_priv->shared_dplls[i].info = &dpll_info[i]; dev_priv->shared_dplls[i].id = dpll_info[i].id; dev_priv->shared_dplls[i].name = dpll_info[i].name; diff --git a/drivers/gpu/drm/i915/intel_dpll_mgr.h b/drivers/gpu/drm/i915/intel_dpll_mgr.h index e99d6385478a..bd2d3652cec4 100644 --- a/drivers/gpu/drm/i915/intel_dpll_mgr.h +++ b/drivers/gpu/drm/i915/intel_dpll_mgr.h @@ -253,6 +253,11 @@ struct intel_shared_dpll { */ struct intel_shared_dpll_funcs funcs; + /** + * @info: platform specific info + */ + const struct dpll_info *info; + #define INTEL_DPLL_ALWAYS_ON (1 << 0) /** * @flags: |