drm/i915: Fix VBT backlight Hz to PWM conversion for PNV
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Nov 2015 14:23:42 +0000 (16:23 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 2 Dec 2015 09:22:56 +0000 (11:22 +0200)
commit245f586876eefc55438f0d65856fbe15de8dadca
tree67dbc21fe9404737e87dbe5935cbc4ad8404f082
parentd965e7ac7a196c27e299c598bcb678ab71132dc1
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>
drivers/gpu/drm/i915/intel_panel.c