drm/i915: Use DIV_ROUND_CLOSEST for PWM calculations
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 2 Mar 2016 15:22:18 +0000 (17:22 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 4 Mar 2016 12:46:52 +0000 (14:46 +0200)
commit37f2248e3d422f0463800b574ea9288ede97cea2
tree1fdb896745b244ebac99576bc64ddb7959459a9c
parenta457f54b293c82fc6b222d9bc59fed4984321d84
drm/i915: Use DIV_ROUND_CLOSEST for PWM calculations

Supposedly we would want to get the PWM output as close as possible to
the target, so let's round to closest.

Cc: Jani Nikula <jani.nikula@linux.intel.com>
Suggested-by: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1456932138-14004-7-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_panel.c