summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_dpll_mgr.h
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2018-03-20 15:06:33 -0700
committerRodrigo Vivi <rodrigo.vivi@intel.com>2018-03-27 10:35:21 -0700
commitee1398ba01b308015e568d46fd62a38ceebd7abe (patch)
treed904a71e75d7e1deda7f514c6c2c4d0798004552 /drivers/gpu/drm/i915/intel_dpll_mgr.h
parente30379637fc712991ec8fff1f79344f384ace0aa (diff)
drm/i915: use funcs from intel_shared_dpll.info
Replace all users of pll->funcs.* to use pll->info->funcs->*. The extra indirection here is not on any critical path and we can leave all const data together. 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-4-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.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/intel_dpll_mgr.h b/drivers/gpu/drm/i915/intel_dpll_mgr.h
index bd2d3652cec4..f49382207a0a 100644
--- a/drivers/gpu/drm/i915/intel_dpll_mgr.h
+++ b/drivers/gpu/drm/i915/intel_dpll_mgr.h
@@ -211,6 +211,9 @@ struct intel_shared_dpll_funcs {
struct dpll_info {
const char *name;
const int id;
+ /**
+ * @funcs: platform specific hooks
+ */
const struct intel_shared_dpll_funcs *funcs;
uint32_t flags;
};
@@ -249,11 +252,6 @@ struct intel_shared_dpll {
enum intel_dpll_id id;
/**
- * @funcs: platform specific hooks
- */
- struct intel_shared_dpll_funcs funcs;
-
- /**
* @info: platform specific info
*/
const struct dpll_info *info;