]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fixed point fixed16 wrapper cleanup
authorKumar, Mahesh <mahesh1.kumar@intel.com>
Thu, 17 Aug 2017 13:45:22 +0000 (19:15 +0530)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 7 Sep 2017 11:33:45 +0000 (13:33 +0200)
commitd2956259f37f61ab9868ad604adb74bb6560727e
treed6e80d6d43bd80b46a09ead45ba17b52f92ec7b1
parent18580d04b99020f3e565c3ca45c2324664c7c5b1
drm/i915: Fixed point fixed16 wrapper cleanup

As per suggestion from Jani, cleanup the code. Cleanup includes
 - Instead of left shifting & check, compare with U32/16_MAX
 - Use typecast instead of clamp_t

Signed-off-by: Mahesh Kumar <mahesh1.kumar@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170817134529.2839-2-mahesh1.kumar@intel.com
drivers/gpu/drm/i915/i915_drv.h