]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: take-out common clamping code of fixed16 wrappers
authorKumar, Mahesh <mahesh1.kumar@intel.com>
Wed, 5 Jul 2017 14:31:44 +0000 (20:01 +0530)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 13 Jul 2017 14:37:02 +0000 (16:37 +0200)
commit895044ea65f4da10605be7af30bbeda8e8523c1d
treee5eaac530e721fd9c4c94576114426c7367fcabc
parentbaa7450a2ad92dfd22243f1c69278d76ba0ba938
drm/i915: take-out common clamping code of fixed16 wrappers

This patch creates a new function for clamping u64 to fixed16.
And make use of this function in other fixed16 wrappers.

Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170705143154.32132-2-mahesh1.kumar@intel.com
drivers/gpu/drm/i915/i915_drv.h