diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-11-30 16:23:42 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-12-02 11:22:56 +0200 |
commit | 245f586876eefc55438f0d65856fbe15de8dadca (patch) | |
tree | 67dbc21fe9404737e87dbe5935cbc4ad8404f082 /drivers/gpu/drm/i915/intel_panel.c | |
parent | d965e7ac7a196c27e299c598bcb678ab71132dc1 (diff) | |
download | blackbird-op-linux-245f586876eefc55438f0d65856fbe15de8dadca.tar.gz blackbird-op-linux-245f586876eefc55438f0d65856fbe15de8dadca.zip |
drm/i915: Fix VBT backlight Hz to PWM conversion for PNV
Convert the MHz number coming from intel_rawclk() into Hz in
i9xx_hz_to_pwm() on PNV. Otherwise we'll get something totally
bogus as a result.
Fixes: aa17cdb4f836 ("drm/i915: initialize backlight max from VBT")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1448893432-6978-2-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_panel.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index 2b25497333de..c3d3bba97651 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c @@ -1343,7 +1343,7 @@ static u32 i9xx_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) int clock; if (IS_PINEVIEW(dev)) - clock = intel_hrawclk(dev); + clock = MHz(intel_hrawclk(dev)); else clock = 1000 * dev_priv->display.get_display_clock_speed(dev); |