From: Mika Kahola Date: Tue, 13 Dec 2016 08:02:49 +0000 (+0200) Subject: drm/i915: clean up Hz to PWM for i965 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3bed7f4dd3c9047557d7b64bb155bc79afa26e96;p=linux-beck.git drm/i915: clean up Hz to PWM for i965 Unify function structure as any other *_hz_to_pwm() functions are structured. Signed-off-by: Mika Kahola Reviewed-by: Jani Nikula Signed-off-by: Jani Nikula Link: http://patchwork.freedesktop.org/patch/msgid/1481616169-16210-4-git-send-email-mika.kahola@intel.com --- diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index 3ce471993771..1a6ff26dea20 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c @@ -1327,8 +1327,7 @@ static u32 i9xx_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) */ static u32 i965_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) { - struct drm_device *dev = connector->base.dev; - struct drm_i915_private *dev_priv = to_i915(dev); + struct drm_i915_private *dev_priv = to_i915(connector->base.dev); int clock; if (IS_G4X(dev_priv))