drm/i915/cdclk: move struct intel_cdclk_funcs to intel_cdclk.c
The funcs struct can be opaque, make it internal to intel_cdclk.c. Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211213114106.296017-2-jani.nikula@intel.com
This commit is contained in:
parent
cce936f4ff
commit
a908db6d98
@ -63,6 +63,17 @@
|
||||
* dividers can be programmed correctly.
|
||||
*/
|
||||
|
||||
struct intel_cdclk_funcs {
|
||||
void (*get_cdclk)(struct drm_i915_private *i915,
|
||||
struct intel_cdclk_config *cdclk_config);
|
||||
void (*set_cdclk)(struct drm_i915_private *i915,
|
||||
const struct intel_cdclk_config *cdclk_config,
|
||||
enum pipe pipe);
|
||||
int (*bw_calc_min_cdclk)(struct intel_atomic_state *state);
|
||||
int (*modeset_calc_cdclk)(struct intel_cdclk_state *state);
|
||||
u8 (*calc_voltage_level)(int cdclk);
|
||||
};
|
||||
|
||||
void intel_cdclk_get_cdclk(struct drm_i915_private *dev_priv,
|
||||
struct intel_cdclk_config *cdclk_config)
|
||||
{
|
||||
|
@ -293,6 +293,7 @@ struct intel_connector;
|
||||
struct intel_encoder;
|
||||
struct intel_atomic_state;
|
||||
struct intel_cdclk_config;
|
||||
struct intel_cdclk_funcs;
|
||||
struct intel_cdclk_state;
|
||||
struct intel_cdclk_vals;
|
||||
struct intel_initial_plane_config;
|
||||
@ -341,17 +342,6 @@ struct intel_color_funcs {
|
||||
void (*read_luts)(struct intel_crtc_state *crtc_state);
|
||||
};
|
||||
|
||||
struct intel_cdclk_funcs {
|
||||
void (*get_cdclk)(struct drm_i915_private *dev_priv,
|
||||
struct intel_cdclk_config *cdclk_config);
|
||||
void (*set_cdclk)(struct drm_i915_private *dev_priv,
|
||||
const struct intel_cdclk_config *cdclk_config,
|
||||
enum pipe pipe);
|
||||
int (*bw_calc_min_cdclk)(struct intel_atomic_state *state);
|
||||
int (*modeset_calc_cdclk)(struct intel_cdclk_state *state);
|
||||
u8 (*calc_voltage_level)(int cdclk);
|
||||
};
|
||||
|
||||
struct intel_hotplug_funcs {
|
||||
void (*hpd_irq_setup)(struct drm_i915_private *dev_priv);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user