Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3658729a authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter
Browse files

drm/i915: Rename hsw_wm_get_pixel_rate to ilk_pipe_pixel_rate



hsw_wm_get_pixel_rate() isn't specific to HSW. In fact it should be made
to handle all gens, but for now it depends on the PCH panel fitter
state, so give it an ilk_ prefix.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent ec4c4aa1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2095,7 +2095,7 @@ static void ivybridge_update_wm(struct drm_device *dev)
		   cursor_wm);
}

static uint32_t hsw_wm_get_pixel_rate(struct drm_device *dev,
static uint32_t ilk_pipe_pixel_rate(struct drm_device *dev,
				    struct drm_crtc *crtc)
{
	struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
@@ -2388,7 +2388,7 @@ static void hsw_compute_wm_parameters(struct drm_device *dev,
		pipes_active++;

		p->pipe_htotal = intel_crtc->config.adjusted_mode.htotal;
		p->pixel_rate = hsw_wm_get_pixel_rate(dev, crtc);
		p->pixel_rate = ilk_pipe_pixel_rate(dev, crtc);
		p->pri_bytes_per_pixel = crtc->fb->bits_per_pixel / 8;
		p->cur_bytes_per_pixel = 4;
		p->pri_horiz_pixels =